prehistoric-lion-61312
12/08/2025, 3:15 PMself.session.say(text, audio) to play pre-recorded segments quite a lot. I have just come across an instance where one of the segments has an audio effect that simulates breathing in, and for some reason that bit sounds completely off when playing through Livekit, but when played as an mp3 file on my laptop it sounds just right.
Any chance there is anything going on behind the scenes of the .say method that is filtering noises not recognized as words?prehistoric-lion-61312
12/08/2025, 3:17 PMawait self.session.say(text=text, audio=self.get_audio(file_name))
# ...
async def get_audio(file_name: str) -> AsyncGenerator[rtc.AudioFrame, None]:
async for audio_frame in audio_frames_from_file(file_path=file_name):
yield audio_frameprehistoric-lion-61312
12/08/2025, 3:23 PMprehistoric-lion-61312
12/09/2025, 8:35 AMlively-winter-88668
12/09/2025, 10:38 AMsession.say() with audio.prehistoric-lion-61312
12/09/2025, 10:51 AMlively-winter-88668
12/09/2025, 10:55 AMprehistoric-lion-61312
12/09/2025, 10:57 AMtest.wav, when the breathing sound happens. The words on my file sound just fine too, it's when we get to the breathing sounds that they get distorted for some reason 🤔prehistoric-lion-61312
12/09/2025, 10:57 AMlively-winter-88668
12/09/2025, 11:57 AMprehistoric-lion-61312
12/09/2025, 12:03 PMsquare-spoon-72769
12/09/2025, 12:58 PMrecord=False (but maybe that's not needed anymore), see thread https://livekit-users.slack.com/archives/C07FY8WHGPM/p1764152826666859?thread_ts=1763736513.880999&cid=C07FY8WHGPMprehistoric-lion-61312
12/09/2025, 1:01 PM