Baghdad99 commited on
Commit
952235c
1 Parent(s): 47c691b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -22,7 +22,8 @@ def translate_speech(audio_data_tuple):
22
  print(f"Audio data type: {type(audio_data)}, Audio data shape: {audio_data.shape}")
23
 
24
  # Use the speech recognition pipeline to transcribe the audio
25
- output = pipe(audio_data)
 
26
  print(f"Output: {output}") # Print the output to see what it contains
27
 
28
  # Check if the output contains 'text'
 
22
  print(f"Audio data type: {type(audio_data)}, Audio data shape: {audio_data.shape}")
23
 
24
  # Use the speech recognition pipeline to transcribe the audio
25
+ output = pipe(audio_data.astype(np.float64)) # Convert to Double
26
+
27
  print(f"Output: {output}") # Print the output to see what it contains
28
 
29
  # Check if the output contains 'text'