File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ mod tests {
2020 client
2121 . init ( InitRequest {
2222 api_key : "" . to_string ( ) ,
23- model : None ,
24- model_repo : None ,
23+ model : Some ( "nvidia_parakeet-v2_476MB" . to_string ( ) ) ,
24+ model_repo : Some ( "argmaxinc/parakeetkit-pro" . to_string ( ) ) ,
2525 model_folder : None ,
2626 custom_vocabulary : Some ( vec ! [ ] ) ,
2727 } )
Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ impl AudioInput {
9393 name
9494 }
9595
96+ pub fn sample_rate ( & self ) -> u32 {
97+ match & self . source {
98+ AudioSource :: RealtimeMic => self . mic . as_ref ( ) . unwrap ( ) . sample_rate ( ) ,
99+ AudioSource :: RealtimeSpeaker => self . speaker . as_ref ( ) . unwrap ( ) . sample_rate ( ) ,
100+ AudioSource :: Recorded => 16000 ,
101+ }
102+ }
103+
96104 pub fn list_mic_devices ( ) -> Vec < String > {
97105 let host = cpal:: default_host ( ) ;
98106
You can’t perform that action at this time.
0 commit comments