SpeechTranscript#
A transcript from speech recognition. Multiple transcripts may be sent for the same speech fragment as it is uttered, each one having more accurate text as more audio information comes in. Speech fragments are generally sentences. They may be a partial sentence, if the whole sentence is over the length limit.
- Kind:
Message
- ROS type:
interfaces/msg/SpeechTranscript- Python:
from interfaces.msg import SpeechTranscript- C++:
#include "interfaces/msg/speech_transcript.hpp"
Fields#
Field |
Type |
Description |
|---|---|---|
|
|
Unique identifier of the transcript. Messages with the same transcript ID share the starting audio data. |
|
|
True if this is the last transcript of a speech fragment. |
|
|
Transcript text. |
Used on#
/speech_transcription_preview (topic): published by Speech (
speech_node)./speech_transcription_final (topic): published by Speech (
speech_node).
Definition
# A transcript from speech recognition.
# Multiple transcripts may be sent for the same speech fragment as it is uttered, each one
# having more accurate text as more audio information comes in. Speech fragments are
# generally sentences. They may be a partial sentence, if the whole sentence is over the
# length limit.
# Unique identifier of the transcript.
# Messages with the same transcript ID share the starting audio data.
int32 transcript_id
# True if this is the last transcript of a speech fragment.
bool is_final
# Transcript text.
string text