Spaces:
Sleeping
Sleeping
remove verbose print
Browse files- src/main.rs +0 -7
src/main.rs
CHANGED
@@ -194,18 +194,11 @@ async fn stream_listener(ctx: Data<&Context>, query: Query<LessonListenerQuery>,
|
|
194 |
let _ = socket.send(Message::Text("lesson not found".to_string())).await;
|
195 |
return
|
196 |
};
|
197 |
-
|
198 |
-
println!("lesson found");
|
199 |
let mut transcript_rx = lesson.transcript_channel();
|
200 |
-
println!("transcribe start");
|
201 |
-
|
202 |
let mut lang_lesson = lesson.get_or_init(query.lang.clone()).await;
|
203 |
let mut translate_rx = lang_lesson.translated_channel();
|
204 |
-
println!("translate start");
|
205 |
-
|
206 |
let mut voice_lesson = lang_lesson.get_or_init(voice_id).await;
|
207 |
let mut voice_rx = voice_lesson.voice_channel();
|
208 |
-
println!("synthesize start");
|
209 |
|
210 |
loop {
|
211 |
select! {
|
|
|
194 |
let _ = socket.send(Message::Text("lesson not found".to_string())).await;
|
195 |
return
|
196 |
};
|
|
|
|
|
197 |
let mut transcript_rx = lesson.transcript_channel();
|
|
|
|
|
198 |
let mut lang_lesson = lesson.get_or_init(query.lang.clone()).await;
|
199 |
let mut translate_rx = lang_lesson.translated_channel();
|
|
|
|
|
200 |
let mut voice_lesson = lang_lesson.get_or_init(voice_id).await;
|
201 |
let mut voice_rx = voice_lesson.voice_channel();
|
|
|
202 |
|
203 |
loop {
|
204 |
select! {
|