OuroborosM commited on
Commit
eaf257e
·
1 Parent(s): 2487e0c

update tts

Browse files
Files changed (2) hide show
  1. Dockerfile +27 -11
  2. app.py +2 -2
Dockerfile CHANGED
@@ -9,17 +9,33 @@ COPY ./requirements.txt /code/requirements.txt
9
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
- RUN wget -O - https://www.openssl.org/source/openssl-1.1.1u.tar.gz | tar zxf - \
13
- && cd openssl-1.1.1u \
14
- && ./config --prefix=/usr/local \
15
- && make -j $(nproc) \
16
- make install_sw install_ssldirs \
17
- ldconfig -v
18
- ENV SSL_CERT_DIR=/etc/ssl/certs
19
- ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
20
-
21
- RUN apt-get update
22
- RUN apt-get install build-essential libssl-dev ca-certificates libasound2 wget
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
 
25
  # Set up a new user named "user" with user ID 1000
 
9
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
+ # RUN wget -O - https://www.openssl.org/source/openssl-1.1.1u.tar.gz | tar zxf - \
13
+ # && cd openssl-1.1.1u \
14
+ # && ./config --prefix=/usr/local \
15
+ # && make -j $(nproc) \
16
+ # make install_sw install_ssldirs \
17
+ # ldconfig -v
18
+ # ENV SSL_CERT_DIR=/etc/ssl/certs
19
+ # ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
20
+
21
+ # RUN apt-get update
22
+ # RUN apt-get install build-essential libssl-dev ca-certificates libasound2 wget
23
+
24
+
25
+ RUN apt-get update && \
26
+ apt-get install -y build-essential libssl-dev ca-certificates libasound2 wget && \
27
+ wget -O - https://www.openssl.org/source/openssl-1.1.1u.tar.gz | tar zxf - && \
28
+ cd openssl-1.1.1u && \
29
+ ./config --prefix=/usr/local && \
30
+ make -j $(nproc) && \
31
+ make install_sw install_ssldirs && \
32
+ ldconfig -v && \
33
+ export SSL_CERT_DIR=/etc/ssl/certs && \
34
+ cd ../ && \
35
+ rm -rf openssl-1.1.1u && \
36
+ pip install --no-cache-dir azure-cognitiveservices-speech==1.30.0 \
37
+ export SSL_CERT_DIR=/usr/lib/ssl/certs
38
+
39
 
40
 
41
  # Set up a new user named "user" with user ID 1000
app.py CHANGED
@@ -271,8 +271,8 @@ def text_to_speech_2(text):
271
  except requests.exceptions.RequestException as e:
272
  print(f"Error: {e}")
273
  return None
274
- print (type(response.content))
275
- return("abc.wav")
276
  # return response.content
277
 
278
  Text2Sound_tool = Tool(
 
271
  except requests.exceptions.RequestException as e:
272
  print(f"Error: {e}")
273
  return None
274
+ print ("Type of File: ", type(response.content))
275
+ return("Test TTS: abc.wav")
276
  # return response.content
277
 
278
  Text2Sound_tool = Tool(