Skip to content

Commit 516c463

Browse files
ruiren_microsoftCopilot
andcommitted
chore: update model alias to nemotron-speech-streaming-en-0.6b across all samples
Update the model name from 'nemotron' to 'nemotron-speech-streaming-en-0.6b' in all 5 language samples (JS, C#, Python, Rust, C++). Also align the JS sample with the reference at ruiren/build-js-sdk-packaging (appName, banner). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8792497 commit 516c463

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

  • samples

samples/cpp/live-audio-transcription-example/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ int main() {
4545

4646
auto manager = foundry_local::FoundryLocalManager::Create(config);
4747
auto catalog = manager->GetCatalog();
48-
auto model = catalog.GetModel("nemotron");
48+
auto model = catalog.GetModel("nemotron-speech-streaming-en-0.6b");
4949
if (!model) {
50-
throw std::runtime_error("Model \"nemotron\" not found in catalog");
50+
throw std::runtime_error("Model \"nemotron-speech-streaming-en-0.6b\" not found in catalog");
5151
}
5252

5353
model->Download();

samples/cs/live-audio-transcription-example/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
var catalog = await mgr.GetCatalogAsync();
2626

27-
var model = await catalog.GetModelAsync("nemotron") ?? throw new Exception("Model \"nemotron\" not found in catalog");
27+
var model = await catalog.GetModelAsync("nemotron-speech-streaming-en-0.6b") ?? throw new Exception("Model \"nemotron-speech-streaming-en-0.6b\" not found in catalog");
2828

2929
await model.DownloadAsync(progress =>
3030
{

samples/js/live-audio-transcription-example/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
import { FoundryLocalManager } from 'foundry-local-sdk';
99

1010
console.log('╔══════════════════════════════════════════════════════════╗');
11-
console.log('║ Foundry Local — Live Audio Transcription (JS SDK) ║');
11+
console.log('║ Foundry Local — Live Audio Transcription (JS SDK) ║');
1212
console.log('╚══════════════════════════════════════════════════════════╝');
1313
console.log();
1414

1515
// Initialize the Foundry Local SDK
1616
console.log('Initializing Foundry Local SDK...');
1717
const manager = FoundryLocalManager.create({
18-
appName: 'foundry_local_live_audio',
18+
appName: 'foundry',
1919
logLevel: 'info'
2020
});
2121
console.log('✓ SDK initialized');
2222

2323
// Get and load the nemotron model
24-
const modelAlias = 'nemotron';
24+
const modelAlias = 'nemotron-speech-streaming-en-0.6b';
2525
let model = await manager.catalog.getModel(modelAlias);
2626
if (!model) {
2727
console.error(`ERROR: Model "${modelAlias}" not found in catalog.`);

samples/python/live-audio-transcription/src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
manager.download_and_register_eps()
3030

31-
model = manager.catalog.get_model("nemotron")
31+
model = manager.catalog.get_model("nemotron-speech-streaming-en-0.6b")
3232
if model is None:
33-
raise RuntimeError('Model "nemotron" not found in catalog')
33+
raise RuntimeError('Model "nemotron-speech-streaming-en-0.6b" not found in catalog')
3434

3535
model.download(
3636
lambda progress: print(f"\rDownloading model: {progress:.2f}%", end="", flush=True)

samples/rust/live-audio-transcription-example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sample: Live Audio Transcription
22

3-
This sample demonstrates real-time microphone transcription using the Foundry Local Rust SDK and the `nemotron` model.
3+
This sample demonstrates real-time microphone transcription using the Foundry Local Rust SDK and the `nemotron-speech-streaming-en-0.6b` model.
44

55
> **⚠️ Forward-looking sample:** This example requires a Rust SDK version that includes
66
> `create_live_transcription_session`. The live-transcription session API is not yet

samples/rust/live-audio-transcription-example/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use cpal::traits::{DeviceTrait, HostTrait, StreamTrait};
1212
use foundry_local_sdk::{FoundryLocalConfig, FoundryLocalManager};
1313
use tokio_stream::StreamExt;
1414

15-
const ALIAS: &str = "nemotron";
15+
const ALIAS: &str = "nemotron-speech-streaming-en-0.6b";
1616

1717
#[tokio::main]
1818
async fn main() -> Result<(), Box<dyn std::error::Error>> {

0 commit comments

Comments
 (0)