Spaces:
Runtime error
Runtime error
KarthickAdopleAI
commited on
Commit
•
9e64668
1
Parent(s):
13c451b
Update app.py
Browse files
app.py
CHANGED
@@ -150,8 +150,9 @@ class VideoAnalytics:
|
|
150 |
|
151 |
# Replace 'input.mp3' and 'output.wav' with your file paths
|
152 |
audio_filename = self.mp3_to_wav("output_audio.mp3", 'output.wav')
|
|
|
153 |
# for detect lang
|
154 |
-
signal = self.language_id.load_audio(
|
155 |
prediction = self.language_id.classify_batch(signal)
|
156 |
lang = [prediction[3][0].split(":")][0][0]
|
157 |
text = self.get_large_audio_transcription_on_silence(audio_filename,lang)
|
|
|
150 |
|
151 |
# Replace 'input.mp3' and 'output.wav' with your file paths
|
152 |
audio_filename = self.mp3_to_wav("output_audio.mp3", 'output.wav')
|
153 |
+
|
154 |
# for detect lang
|
155 |
+
signal = self.language_id.load_audio(audio_filename)
|
156 |
prediction = self.language_id.classify_batch(signal)
|
157 |
lang = [prediction[3][0].split(":")][0][0]
|
158 |
text = self.get_large_audio_transcription_on_silence(audio_filename,lang)
|