STT流式输入业务逻辑处理

This commit is contained in:
2025-10-19 00:02:11 +08:00
parent d46581e1dc
commit d58fa13356
2 changed files with 10 additions and 6 deletions

View File

@@ -81,8 +81,8 @@ public class RealtimeTranscriptionMicrophone {
}
// 3. 提交音频并请求转录
webSocket.send("{\"type\": \"input_audio_buffer.commit\"}");
webSocket.send("{\"type\": \"response.create\"}");
// webSocket.send("{\"type\": \"input_audio_buffer.commit\"}");
// webSocket.send("{\"type\": \"response.create\"}");
} catch (Exception e) {
e.printStackTrace();
}