owiedotch commited on
Commit
dc59c25
·
verified ·
1 Parent(s): 055ea67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -106,7 +106,7 @@ def decode_tokens(token_file):
106
 
107
  # Extract audio data - this should be a numpy array
108
  audio_data = waveform[0, 0] # Shape should be [time]
109
- sample_rate = 32000
110
 
111
  print(f"Audio data shape: {audio_data.shape}, dtype: {audio_data.dtype}")
112
 
@@ -155,7 +155,7 @@ def process_both(audio_path):
155
 
156
  # Extract audio data - this should be a numpy array
157
  audio_data = waveform[0, 0] # Shape should be [time]
158
- sample_rate = 32000
159
 
160
  print(f"Audio data shape: {audio_data.shape}, dtype: {audio_data.dtype}")
161
 
 
106
 
107
  # Extract audio data - this should be a numpy array
108
  audio_data = waveform[0, 0] # Shape should be [time]
109
+ sample_rate = 16000
110
 
111
  print(f"Audio data shape: {audio_data.shape}, dtype: {audio_data.dtype}")
112
 
 
155
 
156
  # Extract audio data - this should be a numpy array
157
  audio_data = waveform[0, 0] # Shape should be [time]
158
+ sample_rate = 16000
159
 
160
  print(f"Audio data shape: {audio_data.shape}, dtype: {audio_data.dtype}")
161