-
Notifications
You must be signed in to change notification settings - Fork 2
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
Integration settings for twilio #414
Conversation
Just a thought - can we remove twilio tts setting from bot integration, given that we already list the google voices in the saved run? If we already support google tts, we can just change the logic to say if the saved run has selected google tts, we use twilio inbuilt google tts with the same voice. similarly for the asr model, if its set to auto detect in the saved run, we can pick up the language setting and use that for twilio too I have seen in user testing that its hard to have 2 places to configure things + this makes it slightly easier to test without releasing the bot integration this looks pretty good to me otherwise |
What about the current use case for these settings where asr/tts isn’t enabled on the underlying gooey run? Should we just default to an arbitrary twilio tts voice and english for asr? |
Yup, the default we hardcoded now can work. We can also force people to do this at time of creation of the twilio bot, but probably ok to use the hardcoded defaults right now |
I just realised the user language support list can be different from the Twilio asr supported languages. If such an edge case happens, just fallback to gooey asr |
- Remove message quicklink not available for Twilio - Replace `twilio_phone_number_sid` condition with `twilio_phone_number` in `get_bot_test_link` to fix /chat links - Use `furl` for constructing URLs, improving readability and maintainability.
7553d2b
to
94cdb47
Compare
…t handling - Fix KeyError when calling a bot that has no asr/tts selected - Remove the `get_twilio_tts_voice` and `get_twilio_asr_language` functions. - Add `resolve_twilio_asr_language` and `resolve_twilio_tts_voice` functions to handle language and voice determination. - Refactor `create_voice_call_response` and `resp_say_or_tts_play` to use new resolve functions. - Update constants for default and supported ASR languages and TTS voices.
Task: https://app.asana.com/0/1203067047205953/1207805759212356
No connect UI, just the integration settings as requested.
Q/A checklist
You can visualize this using tuna:
To measure import time for a specific library:
To reduce import times, import libraries that take a long time inside the functions that use them instead of at the top of the file:
Legal Boilerplate
Look, I get it. The entity doing business as “Gooey.AI” and/or “Dara.network” was incorporated in the State of Delaware in 2020 as Dara Network Inc. and is gonna need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Dara Network Inc can use, modify, copy, and redistribute my contributions, under its choice of terms.