Merged
Conversation
…troduce new WebSocket-based ASR client - Deleted the previous `audio.rs` file containing TTS and ASR implementations. - Removed the `client.rs` file for ASR operations. - Updated `mod.rs` to reflect the new structure and added WebSocket client functionality. - Introduced a new `WsClient` struct for managing WebSocket connections. - Created a new `asr` module with a more structured approach to handle ASR operations via WebSocket. - Added new parameter and payload structures for ASR tasks, including serialization and deserialization logic. - Implemented a new example for ASR using WebSocket, demonstrating how to send audio data and handle responses. - Updated the `audio` module to include TTS and ASR functionalities with appropriate error handling.
…lementation - Deleted legacy ASR output and parameter structures from `src/operation/audio/asr/output.rs` and `src/operation/audio/asr/param.rs`. - Introduced new WebSocket-based ASR structures in `src/operation/audio/ws/output.rs` and `src/operation/audio/ws/param.rs`. - Updated `src/operation/audio/mod.rs` to integrate the new WebSocket ASR functionality. - Implemented `WebsocketInference` struct for handling WebSocket connections and events. - Added callback trait for handling WebSocket events and responses. - Ensured backward compatibility by maintaining similar structures and methods in the new implementation.
This commit introduces a new Rust file `convert_bytes.rs` that contains a main function. The function initializes a byte array representing a JSON string and attempts to convert it to a UTF-8 string. If successful, it prints the JSON string; otherwise, it prints an error message.
- Implemented `asr_ws` and `tts_ws` methods in the Audio struct for WebSocket inference. - Refactored WebSocket event handling in `output.rs` to streamline event processing. - Introduced new enums for task actions and types to enhance clarity in task management. - Created utility functions for generating ASR and TTS task parameters. - Added example implementations for WebSocket-based ASR and TTS in `websocket_asr.rs` and `websocket_tts.rs`. - Enhanced task parameter structures to support optional fields and improved serialization.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.