File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
apps/silero-vad-whisper-realtime-api/src Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ impl ProcessingStats {
72
72
}
73
73
}
74
74
75
+ #[ allow( clippy:: cast_precision_loss) ]
75
76
pub async fn transcribe_audio (
76
77
State ( state) : State < Arc < AppState > > ,
77
78
mut multipart : Multipart ,
@@ -251,6 +252,7 @@ async fn convert_audio_to_pcm(audio_data: &[u8]) -> Result<Vec<f32>> {
251
252
}
252
253
253
254
// Process complete audio file and return full transcript
255
+ #[ allow( clippy:: significant_drop_tightening) ]
254
256
async fn transcribe_audio_complete (
255
257
state : Arc < AppState > ,
256
258
model_name : String , // Change to owned String
@@ -382,6 +384,7 @@ async fn create_transcription_stream(
382
384
}
383
385
384
386
// Create event with actual transcription or progress update
387
+ #[ allow( clippy:: option_if_let_else) ]
385
388
let event_data = if let Some ( transcript) = whisper_result {
386
389
#[ allow( clippy:: cast_precision_loss) ]
387
390
StreamChunk { text : transcript, timestamp : Some ( processed as f64 / f64:: from ( sample_rate) ) }
You can’t perform that action at this time.
0 commit comments