File size: 771 Bytes
07053db
f875867
502a773
 
d6b4194
b19ba5e
 
 
 
 
 
 
 
 
 
 
 
 
 
19489aa
b19ba5e
95e075b
b19ba5e
 
19489aa
b19ba5e
 
95e075b
cf8f17a
95e075b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.10
USER root
ENV TOKEN=aGZfamlwc3Vsald5UXJRTkhvcWZqRHVweGRMdlNtbEhJbm1OTg==
ENV REPO_ID=HirCoir/piper-laura-neuronal

# Establece el directorio de trabajo dentro del contenedor
RUN apt update
RUN apt install -y \
    make \
    cmake \
    clang \
    gcc \
    git \
    curl \
    sudo \
    python3-dev \
    python3 \
    python3-pip \
    python3-venv \
    espeak-ng
    
WORKDIR /root
RUN git clone https://github.com/rhasspy/piper
RUN pip install -q cython>=0.29.0 espeak-phonemizer>=1.1.0 librosa>=0.9.2 numpy>=1.19.0 pytorch-lightning~=1.7.0 torch~=1.11.0
RUN pip install -q onnx onnxruntime huggingface_hub
RUN pip install -q torchtext==0.12.0

WORKDIR /root/piper/src/python
COPY download-model.py .
RUN python3 download-model.py
RUN sleep 1000