8000 Adding language code to the response by sarane22 · Pull Request #50 · nvidia-riva/common · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Adding language code to the response #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2025
Merged
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
6 changes: 6 additions & 0 deletions riva/proto/riva_asr.proto
4B7F
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ message SpeechRecognitionAlternative {
// A list of word-specific information for each recognized word. Only
// populated if is_final=true
repeated WordInfo words = 3;

// List of language codes detected in the transcript.
repeated string language_code = 4;
}

// Word-specific information for recognized words.
Expand Down Expand Up @@ -364,6 +367,9 @@ message WordInfo {
// speaker_tag is set if enable_speaker_diarization = 'true' and only in the
// top alternative.
int32 speaker_tag = 5;

// The language code of the word.
string language_code = 6;
}

// `StreamingRecognizeResponse` is the only message returned to the client by
Expand Down
0