chibop commited on
Commit
13d15fb
·
verified ·
1 Parent(s): 982b944

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. chat.py +1 -1
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