Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,8 @@ forced_decoder_ids = processor.get_decoder_prompt_ids(language="italian", task="
|
|
| 16 |
|
| 17 |
# Custom preprocessing function
|
| 18 |
def preprocess_audio(audio_data, sampling_rate=16_000):
|
| 19 |
-
|
| 20 |
-
|
| 21 |
raw_speech = np.asarray(audio_data, dtype=np.float32)
|
| 22 |
|
| 23 |
# Pad or truncate the audio data to the required length
|
|
|
|
| 16 |
|
| 17 |
# Custom preprocessing function
|
| 18 |
def preprocess_audio(audio_data, sampling_rate=16_000):
|
| 19 |
+
print(type(audio_data))
|
| 20 |
+
print(audio_data)
|
| 21 |
raw_speech = np.asarray(audio_data, dtype=np.float32)
|
| 22 |
|
| 23 |
# Pad or truncate the audio data to the required length
|