-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does not work: matches = transcript.word_search(["price", "product"]) #106
Comments
Hi @Faizan-Saifullah! 👋 Could you describe the problem you're seeing? Are you getting an exception, or is the output not what you expected? |
Actually, I am trying to run a script where i do Speech2Txt using AssemblyAI and then i send the data to gpt which processes the answer. from there, i want to out back speech (TTS) using elevenlabs api. But the issue is that the transcriber does not stop after a pause in speech. therefore, I am trying to track a key word which when comes, the transcriber can stop. i need help in that . below is the code: import assemblyai as aai client = openai.Client(api_key="") ###api keys slot: OpenAI.api_key = ""client = ElevenLabs(api_key = "") transcript_queue = Queue() def on_open(session_opened: aai.RealtimeSessionOpened): def on_data(transcript: aai.RealtimeTranscript): def on_error(error: aai.RealtimeError): def on_close(): def handle_conversation():
handle_conversation() |
No description provided.
The text was updated successfully, but these errors were encountered: