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
36 changes: 36 additions & 0 deletions sdk/cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,42 @@ audio.TranscribeAudioStreaming(R"(C:\path\to\audio.wav)", [](const AudioCreateTr
});
```

#### Multilingual Language Codes

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.

Can we move these sections into the READMEs for the live audio transcription samples? These sections are currently listed in the SDK READMEs, which a customer will likely not see.


When using a multilingual ASR model (e.g. `nvidia-nemotron-3.5-asr-streaming-multilingual-0.6b`), set the language to a BCP-47 language code to hint the expected language.

| Code | Language | Code | Language |
|------|----------|------|----------|
| `en-US` | English (US) | `en-GB` | English (UK) |
| `zh-CN` | Chinese (Simplified) | `ja-JP` | Japanese |
| `ko-KR` | Korean | `de-DE` | German |
| `fr-FR` | French | `fr-CA` | French (Canada) |
| `es-ES` | Spanish (Spain) | `es-US` | Spanish (US) |
| `it-IT` | Italian | `pt-BR` | Portuguese (Brazil) |
| `pt-PT` | Portuguese (Portugal) | `ru-RU` | Russian |
| `ar-AR` | Arabic | `hi-IN` | Hindi |
| `nl-NL` | Dutch | `pl-PL` | Polish |
| `sv-SE` | Swedish | `da-DK` | Danish |
| `fi-FI` | Finnish | `cs-CZ` | Czech |
| `ro-RO` | Romanian | `hu-HU` | Hungarian |
| `sk-SK` | Slovak | `bg-BG` | Bulgarian |
| `el-GR` | Greek | `et-EE` | Estonian |
| `hr-HR` | Croatian | `lt-LT` | Lithuanian |
| `lv-LV` | Latvian | `sl-SL` | Slovenian |
| `uk-UA` | Ukrainian | `he-IL` | Hebrew |
| `nb-NO` | Norwegian (Bokmål) | `nn-NO` | Norwegian (Nynorsk) |
| `th-TH` | Thai | `tr-TR` | Turkish |
| `vi-VN` | Vietnamese | `auto` | Auto-detect |

Use `"auto"` to let the model detect the spoken language automatically.

Comment thread
rui-ren marked this conversation as resolved.
Set the language on a live audio transcription session:

```cpp
session->Settings().language = "zh-CN"; // Chinese (Simplified)
// session->Settings().language = "auto"; // Auto-detect language
```

### Tool Calling

See `sample/main.cpp` (Example 5) for a full tool-calling walkthrough.
Expand Down
35 changes: 35 additions & 0 deletions sdk/cs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,41 @@ audioClient.Settings.Language = "en";
audioClient.Settings.Temperature = 0.0f;
```

#### Multilingual Language Codes

When using a multilingual ASR model (e.g. `nvidia-nemotron-3.5-asr-streaming-multilingual-0.6b`), set `Language` to a BCP-47 language code to hint the expected language. This applies to both `OpenAIAudioClient.Settings.Language` and `LiveAudioTranscriptionSession.Settings.Language`.

| Code | Language | Code | Language |
|------|----------|------|----------|
| `en-US` | English (US) | `en-GB` | English (UK) |
| `zh-CN` | Chinese (Simplified) | `ja-JP` | Japanese |
| `ko-KR` | Korean | `de-DE` | German |
| `fr-FR` | French | `fr-CA` | French (Canada) |
| `es-ES` | Spanish (Spain) | `es-US` | Spanish (US) |
| `it-IT` | Italian | `pt-BR` | Portuguese (Brazil) |
| `pt-PT` | Portuguese (Portugal) | `ru-RU` | Russian |
| `ar-AR` | Arabic | `hi-IN` | Hindi |
| `nl-NL` | Dutch | `pl-PL` | Polish |
| `sv-SE` | Swedish | `da-DK` | Danish |
| `fi-FI` | Finnish | `cs-CZ` | Czech |
| `ro-RO` | Romanian | `hu-HU` | Hungarian |
| `sk-SK` | Slovak | `bg-BG` | Bulgarian |
| `el-GR` | Greek | `et-EE` | Estonian |
| `hr-HR` | Croatian | `lt-LT` | Lithuanian |
| `lv-LV` | Latvian | `sl-SL` | Slovenian |
| `uk-UA` | Ukrainian | `he-IL` | Hebrew |
| `nb-NO` | Norwegian (Bokmål) | `nn-NO` | Norwegian (Nynorsk) |
| `th-TH` | Thai | `tr-TR` | Turkish |
| `vi-VN` | Vietnamese | `auto` | Auto-detect |

Use `"auto"` to let the model detect the spoken language automatically.

```csharp
// Multilingual example
audioClient.Settings.Language = "zh-CN"; // Chinese

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.

Suggested change
audioClient.Settings.Language = "zh-CN"; // Chinese
session.Settings.Language = "zh-CN"; // Chinese

session.Settings.Language = "auto"; // Auto-detect
```

### Live Audio Transcription (Real-Time Streaming)

For real-time microphone-to-text transcription, use `CreateLiveTranscriptionSession()`. Audio is pushed as raw PCM chunks and transcription results stream back as an `IAsyncEnumerable`.
Expand Down
33 changes: 33 additions & 0 deletions sdk/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,39 @@ for await (const chunk of audioClient.transcribeStreaming('/path/to/audio.wav'))
}
```

#### Multilingual Language Codes

When using a multilingual ASR model (e.g. `nvidia-nemotron-3.5-asr-streaming-multilingual-0.6b`), set `language` to a BCP-47 language code to hint the expected language.

| Code | Language | Code | Language |
|------|----------|------|----------|
| `en-US` | English (US) | `en-GB` | English (UK) |
| `zh-CN` | Chinese (Simplified) | `ja-JP` | Japanese |
| `ko-KR` | Korean | `de-DE` | German |
| `fr-FR` | French | `fr-CA` | French (Canada) |
| `es-ES` | Spanish (Spain) | `es-US` | Spanish (US) |
| `it-IT` | Italian | `pt-BR` | Portuguese (Brazil) |
| `pt-PT` | Portuguese (Portugal) | `ru-RU` | Russian |
| `ar-AR` | Arabic | `hi-IN` | Hindi |
| `nl-NL` | Dutch | `pl-PL` | Polish |
| `sv-SE` | Swedish | `da-DK` | Danish |
| `fi-FI` | Finnish | `cs-CZ` | Czech |
| `ro-RO` | Romanian | `hu-HU` | Hungarian |
| `sk-SK` | Slovak | `bg-BG` | Bulgarian |
| `el-GR` | Greek | `et-EE` | Estonian |
| `hr-HR` | Croatian | `lt-LT` | Lithuanian |
| `lv-LV` | Latvian | `sl-SL` | Slovenian |
| `uk-UA` | Ukrainian | `he-IL` | Hebrew |
| `nb-NO` | Norwegian (Bokmål) | `nn-NO` | Norwegian (Nynorsk) |
| `th-TH` | Thai | `tr-TR` | Turkish |
| `vi-VN` | Vietnamese | `auto` | Auto-detect |

```typescript
// Multilingual example
audioClient.settings.language = 'zh-CN'; // Chinese

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.

Suggested change
audioClient.settings.language = 'zh-CN'; // Chinese
session.settings.language = 'zh-CN'; // Chinese

audioClient.settings.language = 'auto'; // Auto-detect

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.

Suggested change
audioClient.settings.language = 'auto'; // Auto-detect
session.settings.language = 'auto'; // Auto-detect

```

### Embedded Web Service

Start a local HTTP server that exposes an OpenAI-compatible API:
Expand Down
33 changes: 33 additions & 0 deletions sdk/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,39 @@ while let Some(chunk) = stream.next().await {
}
```

#### Multilingual Language Codes

When using a multilingual ASR model (e.g. `nvidia-nemotron-3.5-asr-streaming-multilingual-0.6b`), set `language` to a BCP-47 language code to hint the expected language.

| Code | Language | Code | Language |
|------|----------|------|----------|
| `en-US` | English (US) | `en-GB` | English (UK) |
| `zh-CN` | Chinese (Simplified) | `ja-JP` | Japanese |
| `ko-KR` | Korean | `de-DE` | German |
| `fr-FR` | French | `fr-CA` | French (Canada) |
| `es-ES` | Spanish (Spain) | `es-US` | Spanish (US) |
| `it-IT` | Italian | `pt-BR` | Portuguese (Brazil) |
| `pt-PT` | Portuguese (Portugal) | `ru-RU` | Russian |
| `ar-AR` | Arabic | `hi-IN` | Hindi |
Comment thread
rui-ren marked this conversation as resolved.
| `nl-NL` | Dutch | `pl-PL` | Polish |
| `sv-SE` | Swedish | `da-DK` | Danish |
| `fi-FI` | Finnish | `cs-CZ` | Czech |
| `ro-RO` | Romanian | `hu-HU` | Hungarian |
| `sk-SK` | Slovak | `bg-BG` | Bulgarian |
| `el-GR` | Greek | `et-EE` | Estonian |
| `hr-HR` | Croatian | `lt-LT` | Lithuanian |
| `lv-LV` | Latvian | `sl-SL` | Slovenian |
Comment thread
rui-ren marked this conversation as resolved.
| `uk-UA` | Ukrainian | `he-IL` | Hebrew |
| `nb-NO` | Norwegian (Bokmål) | `nn-NO` | Norwegian (Nynorsk) |
| `th-TH` | Thai | `tr-TR` | Turkish |
| `vi-VN` | Vietnamese | `auto` | Auto-detect |

```rust
// Multilingual example
let audio_client = model.create_audio_client()

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.

Let's change this code section to the following.

session.settings.language = Some("zh-CN".into()); // Chinese (Simplified)
session.settings.language = Some("auto".into());  // Auto-detect language

.language("zh-CN"); // Chinese
```

### Embedded Web Service

Start a local HTTP server that exposes an OpenAI-compatible REST API:
Expand Down