Skip to content

Detect the EndOfUtterance event and print it#124

Merged
JamesG-Speechmatics merged 9 commits into
masterfrom
feature/end-of-utterance-markers
May 20, 2025
Merged

Detect the EndOfUtterance event and print it#124
JamesG-Speechmatics merged 9 commits into
masterfrom
feature/end-of-utterance-markers

Conversation

@JamesG-Speechmatics

@JamesG-Speechmatics JamesG-Speechmatics commented May 19, 2025

Copy link
Copy Markdown
Contributor

Adds the --end-of-utterance-silence-trigger flag to the CLI, to control the parameter for detecting end of utterances (periods of silence)

"transcription_config": {
    "conversation_config": { 
        "end_of_utterance_silence_trigger": 1.8
    }
}

For json output mode, the EndOfUtterance message will be printed. For text output mode, the text [EndOfUtterance] will be printed.

$ speechmatics transcribe --end-of-utterance-silence-trigger 1.8 --enable-partials --ssl-mode none --url ws://localhost:9000/ ~/long_silences.wav
This
is
an
audio
file
with
some
quite.
[EndOfUtterance]
Long
silences.
[EndOfUtterance]

@giorgosHadji giorgosHadji left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can we add the usual cli test as well please?

@giorgosHadji

Copy link
Copy Markdown
Contributor

current master is on 3.0.5 already btw

@JamesG-Speechmatics JamesG-Speechmatics merged commit 6be8ea9 into master May 20, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants