Skip to content

Commit 9cd8d79

Browse files
authored
fix(kokoros): implement audio_transcription_stream trait stub (#9422)
The backend.proto was updated to add AudioTranscriptionStream RPC, but the Rust KokorosService was never updated to match the regenerated tonic trait, breaking compilation with E0046. Stubs the new streaming method as unimplemented, matching the pattern used for the other streaming RPCs Kokoros does not support.
1 parent 884bfb8 commit 9cd8d79

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

backend/rust/kokoros/src/service.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,16 @@ impl Backend for KokorosService {
341341
Err(Status::unimplemented("Not supported"))
342342
}
343343

344+
type AudioTranscriptionStreamStream =
345+
ReceiverStream<Result<backend::TranscriptStreamResponse, Status>>;
346+
347+
async fn audio_transcription_stream(
348+
&self,
349+
_: Request<backend::TranscriptRequest>,
350+
) -> Result<Response<Self::AudioTranscriptionStreamStream>, Status> {
351+
Err(Status::unimplemented("Not supported"))
352+
}
353+
344354
async fn sound_generation(
345355
&self,
346356
_: Request<backend::SoundGenerationRequest>,

0 commit comments

Comments
 (0)