Skip to content
Open
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
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ members = [
]
exclude = [
"plugins/apple-calendar",
"plugins/apple-contact",
"plugins/cli2",
"plugins/db",
"plugins/extensions",
"plugins/pdf",
"crates/vad-ext",
]

Expand Down
9 changes: 4 additions & 5 deletions crates/owhisper-client/src/adapter/cactus/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,13 @@ impl<S> SseParserState<S> {
&mut self,
response: StreamResponse,
) -> Option<Result<StreamingBatchEvent, Error>> {
if let StreamResponse::TranscriptResponse { channel, .. } = &response {
if channel
if let StreamResponse::TranscriptResponse { channel, .. } = &response
&& channel
.alternatives
.first()
.is_some_and(|a| !a.words.is_empty())
{
self.saw_segment_words = true;
}
{
self.saw_segment_words = true;
}

let segment_end = match &response {
Expand Down
6 changes: 3 additions & 3 deletions crates/owhisper-client/src/adapter/soniox/live.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ fn build_words(tokens: &[&soniox::Token]) -> Vec<owhisper_interface::stream::Wor
.collect()
}

fn partition_tokens_by_word_finality<'a>(
tokens: &'a [soniox::Token],
) -> (Vec<&'a soniox::Token>, Vec<&'a soniox::Token>) {
fn partition_tokens_by_word_finality(
tokens: &[soniox::Token],
) -> (Vec<&soniox::Token>, Vec<&soniox::Token>) {
let mut final_tokens = Vec::new();
let mut non_final_tokens = Vec::new();
for group in token_groups_from_values(tokens) {
Expand Down
Loading