| @@ -4,7 +4,7 @@ nodes: | |||||
| inputs: | inputs: | ||||
| audio: tts/audio | audio: tts/audio | ||||
| text: stt/text | text: stt/text | ||||
| stop: stt/stop | |||||
| speech_started: stt/speech_started | |||||
| outputs: | outputs: | ||||
| - audio | - audio | ||||
| - text | - text | ||||
| @@ -31,7 +31,7 @@ nodes: | |||||
| outputs: | outputs: | ||||
| - text | - text | ||||
| - word | - word | ||||
| - stop | |||||
| - speech_started | |||||
| - id: llm | - id: llm | ||||
| build: pip install -e ../../node-hub/dora-qwen | build: pip install -e ../../node-hub/dora-qwen | ||||
| @@ -268,7 +268,7 @@ def main(): | |||||
| pa.array([text]), | pa.array([text]), | ||||
| ) | ) | ||||
| node.send_output( | node.send_output( | ||||
| "stop", | |||||
| "speech_started", | |||||
| pa.array([text]), | pa.array([text]), | ||||
| ) | ) | ||||
| cache_audio = None | cache_audio = None | ||||
| @@ -367,10 +367,10 @@ async fn handle_client(fut: upgrade::UpgradeFut) -> Result<(), WebSocketError> { | |||||
| .into(), | .into(), | ||||
| )); | )); | ||||
| frame | frame | ||||
| } else if id.contains("stop") { | |||||
| } else if id.contains("") { | |||||
| let serialized_data = | let serialized_data = | ||||
| OpenAIRealtimeResponse::InputAudioBufferSpeechStopped { | |||||
| audio_end_ms: 123, | |||||
| OpenAIRealtimeResponse::InputAudioBufferSpeechStarted { | |||||
| audio_start_ms: 123, | |||||
| item_id: "123".to_string(), | item_id: "123".to_string(), | ||||
| }; | }; | ||||
| finished = true; | finished = true; | ||||