Soma Dhavala
commited on
Commit
·
b2acaa4
1
Parent(s):
5cb4388
add bhasini for hindi
Browse files
app.py
CHANGED
@@ -47,11 +47,10 @@ def get_asr_output(audio_path,lang):
|
|
47 |
|
48 |
|
49 |
transcription = openai.Audio.transcribe("whisper-1", file, language=lang)
|
50 |
-
|
51 |
op_text = transcription.text
|
52 |
|
53 |
if lang == "hi":
|
54 |
-
op_text = asr_pipe("temp.wav")
|
55 |
print('whisper',transcription)
|
56 |
print('ai4b',op_text)
|
57 |
|
|
|
47 |
|
48 |
|
49 |
transcription = openai.Audio.transcribe("whisper-1", file, language=lang)
|
|
|
50 |
op_text = transcription.text
|
51 |
|
52 |
if lang == "hi":
|
53 |
+
op_text = asr_pipe("temp.wav")['text']
|
54 |
print('whisper',transcription)
|
55 |
print('ai4b',op_text)
|
56 |
|