Why the playback audio is not played during the fu...
# ask-ai
a
Why the playback audio is not played during the function execution?
Copy code
@function_tool()
    async def search_information_on_internet(
        self,
        context: RunContext,
        query: str,
        limit: int,
    ) -> dict:
        """Look up for the information for a query on internet.
        
        Args:
            location: The location to look up weather information for.
        """
    
        # Gives the error 
        await self.session.say("Playing audio", audio=audio_generator("waiting_message_hindi.wav"), add_to_chat_ctx=False)

        # return {"weather": "sunny", "temperature_f": 70}
        return {}
t
Thanks for reaching out, Aditya. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!