Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/paraformer-v2-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ uuid = { workspace = true, default-features = false, features = ["serde", "v4",
futures-util = { workspace = true, default-features = false, features = ["sink", "std"] }
async-trait = { workspace = true }
async-stream = { workspace = true }
tokio-util = { workspace = true }

# Logging
tracing = { workspace = true }
5 changes: 1 addition & 4 deletions crates/paraformer-v2-client/src/client.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::io;

use async_stream::stream;
use futures_util::Stream;
use futures_util::{SinkExt, StreamExt};
Expand All @@ -9,7 +7,6 @@ use tokio_tungstenite::tungstenite::Message;
use tokio_tungstenite::tungstenite::client::IntoClientRequest;
use tokio_tungstenite::tungstenite::http::HeaderValue;
use tokio_tungstenite::tungstenite::http::header::AUTHORIZATION;
use tokio_util::bytes::Bytes;
use tracing::{error, info, trace};

use base_client::asr_client::AsrClient;
Expand All @@ -36,7 +33,7 @@ enum Stage {

fn transcribe<W>(
web_socket_stream: W,
mut audio_stream: impl Stream<Item = io::Result<Bytes>> + Unpin,
mut audio_stream: AudioStream,
config: ParaformerV2Config,
) -> impl Stream<Item = Result<TranscribeResponse, ParaformerV2Error>>
where
Expand Down
5 changes: 1 addition & 4 deletions crates/qwen-v3-client/src/client.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use std::io;

use async_stream::stream;
use futures_util::{SinkExt, Stream, StreamExt};
use tokio::select;
use tokio_tungstenite::connect_async;
use tokio_util::bytes::Bytes;
use tracing::{error, info, trace};
use tungstenite::Message;
use tungstenite::client::IntoClientRequest;
Expand Down Expand Up @@ -36,7 +33,7 @@ enum Stage {

fn transcribe<W>(
web_socket_stream: W,
mut audio_stream: impl Stream<Item = io::Result<Bytes>> + Unpin,
mut audio_stream: AudioStream,
config: QwenV3Config,
) -> impl Stream<Item = Result<TranscribeResponse, QwenV3Error>>
where
Expand Down