Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,6 @@ import assemblyai as aai
|
|
16 |
|
17 |
aai.settings.api_key = "d5b107f34d534b4ebdfbd869f8408f92"
|
18 |
transcriber = aai.Transcriber()
|
19 |
-
transcript = transcriber.transcribe("hindi.mp4")
|
20 |
|
21 |
print(transcript.text)
|
22 |
|
@@ -165,9 +164,10 @@ def summarize(meeting_texts=meeting_texts):
|
|
165 |
# Placeholder function for speech to text conversion
|
166 |
def speech_to_text(video):
|
167 |
print('Started transcribing')
|
168 |
-
audio = AudioSegment.from_file(video)
|
169 |
-
audio.export('temp.mp3', format="mp3")
|
170 |
-
transcript= transcriber.transcribe('temp.mp3')['text']
|
|
|
171 |
print('transcript:', transcript)
|
172 |
return transcript
|
173 |
|
|
|
16 |
|
17 |
aai.settings.api_key = "d5b107f34d534b4ebdfbd869f8408f92"
|
18 |
transcriber = aai.Transcriber()
|
|
|
19 |
|
20 |
print(transcript.text)
|
21 |
|
|
|
164 |
# Placeholder function for speech to text conversion
|
165 |
def speech_to_text(video):
|
166 |
print('Started transcribing')
|
167 |
+
# audio = AudioSegment.from_file(video)
|
168 |
+
# audio.export('temp.mp3', format="mp3")
|
169 |
+
# transcript= transcriber.transcribe('temp.mp3')['text']
|
170 |
+
transcript = transcriber.transcribe(video)
|
171 |
print('transcript:', transcript)
|
172 |
return transcript
|
173 |
|