Upload folder using huggingface_hub
Browse files
chat.py
CHANGED
@@ -63,7 +63,7 @@ def speak(history):
|
|
63 |
text = history[-1][1]
|
64 |
speech = client.audio.speech.create(model="tts-1", voice="alloy", input=text)
|
65 |
data, sr = sf.read(BytesIO(speech.read()))
|
66 |
-
data= np.stack((data, data), axis=1)
|
67 |
print(sr, data.shape)
|
68 |
return sr, data
|
69 |
|
|
|
63 |
text = history[-1][1]
|
64 |
speech = client.audio.speech.create(model="tts-1", voice="alloy", input=text)
|
65 |
data, sr = sf.read(BytesIO(speech.read()))
|
66 |
+
#data= np.stack((data, data), axis=1)
|
67 |
print(sr, data.shape)
|
68 |
return sr, data
|
69 |
|