Fix audio message type

This commit is contained in:
Jesse Hills 2024-04-04 14:19:13 +13:00
parent 676c8eb7f2
commit aeb99d623f
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -1292,7 +1292,7 @@ class APIClient:
if handle_audio is not None:
flags |= VoiceAssistantSubscriptionFlag.API_AUDIO
def _on_voice_assistant_audio(msg: VoiceAssistantRequest) -> None:
def _on_voice_assistant_audio(msg: VoiceAssistantAudio) -> None:
audio = VoiceAssistantAudioData.from_pb(msg)
if audio.end:
self._create_background_task(handle_stop())