Hello! I'm using this code from the docs to detec...
# telephony
q
Hello! I'm using this code from the docs to detect a voicemail. I noticed that when I call a Google voice number, it interprets the google voice introduction as a voicemail (it's an automated "you are receiving a call from...."). Is there a way to make the voicemail detector "smarter". Sometimes, it hangs up when I say "available" because maybe it interprets that as a voicemail as well. Thanks so much!
Copy code
@function_tool
    async def detected_answering_machine(self):
        """Call this tool if you have detected a voicemail system, AFTER hearing the voicemail greeting"""
        global voicemail_detected
        doctor_name = self.physician_name
        await self.session.generate_reply(
            instructions=f"Leave a voicemail message letting the user know that you were sent by {doctor_name}'s office, and that they can call this number back when they are ready for their history."
        )
        await asyncio.sleep(0.5) # Add a natural gap to the end of the voicemail message
        await delete_room()
hello, any updates here? Thanks so much for your time.