Manu commited on
Commit
1e645a6
·
1 Parent(s): 4c84c16

added torch

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +2 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def synthesise_audio(text, forward_params=None):
50
  # audio = f.getvalue()
51
 
52
  # Convert numpy array to audio
53
- audio = np.int16(speech["audio"] * 32767).tobytes()
54
  audio_segment = AudioSegment(audio, sample_width=2, frame_rate=speech["sampling_rate"], channels=1)
55
 
56
 
 
50
  # audio = f.getvalue()
51
 
52
  # Convert numpy array to audio
53
+ audio = np.int16(speech["audio"] * 32767)
54
  audio_segment = AudioSegment(audio, sample_width=2, frame_rate=speech["sampling_rate"], channels=1)
55
 
56
 
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
  transformers
2
- soundfile
 
 
1
  transformers
2
+ soundfile
3
+ torch