From 2be495f9c06d797e5dc6c719c5aba290d44eb866 Mon Sep 17 00:00:00 2001 From: "LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Tue, 30 Jun 2026 19:38:41 +0200 Subject: [PATCH] fix(kokoros): implement AudioTranscriptionLive trait stub (#10612) The backend.proto AudioTranscriptionLive bidirectional streaming RPC added new required trait items (AudioTranscriptionLiveStream + audio_transcription_live) on the generated Backend trait. The kokoros (TTS) backend did not implement them, breaking its release build with E0046 (missing trait items). kokoros is text-to-speech and has no live-ASR support, so stub the method to return UNIMPLEMENTED, mirroring the existing audio_transcription_stream stub. Assisted-by: Claude:claude-opus-4-8 [Claude Code] Signed-off-by: Ettore Di Giacinto Co-authored-by: Ettore Di Giacinto --- backend/rust/kokoros/src/service.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backend/rust/kokoros/src/service.rs b/backend/rust/kokoros/src/service.rs index ef361b9dc..495b0a423 100644 --- a/backend/rust/kokoros/src/service.rs +++ b/backend/rust/kokoros/src/service.rs @@ -351,6 +351,16 @@ impl Backend for KokorosService { Err(Status::unimplemented("Not supported")) } + type AudioTranscriptionLiveStream = + ReceiverStream>; + + async fn audio_transcription_live( + &self, + _: Request>, + ) -> Result, Status> { + Err(Status::unimplemented("Not supported")) + } + async fn diarize( &self, _: Request,