Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

chore(voice): move Soniox transcription to the v6 models

muterC4ad4924fbb40
diff --git a/apps/teamhub/internal/voicetranscription/soniox.go b/apps/teamhub/internal/voicetranscription/soniox.go
index a7ec4176..9512d85b 100644
--- a/apps/teamhub/internal/voicetranscription/soniox.go
+++ b/apps/teamhub/internal/voicetranscription/soniox.go
@@ -18,10 +18,10 @@ import (
)
// Asynchronous transcription needs an async model; Voice Runtime streams with
-// stt-rt-v5.
+// stt-rt-v6.
const (
defaultSonioxBaseURL = "https://api.soniox.com"
- sonioxTranscriptionModel = "stt-async-v5"
+ sonioxTranscriptionModel = "stt-async-v6"
)
// SonioxLanguageHints bias short, ambiguous openings without excluding other
diff --git a/apps/voice-runtime/src/config.ts b/apps/voice-runtime/src/config.ts
index 1f8be76b..d1e8e5ca 100644
--- a/apps/voice-runtime/src/config.ts
+++ b/apps/voice-runtime/src/config.ts
@@ -27,7 +27,7 @@ if (!Number.isInteger(healthPort) || healthPort < 1024 || healthPort > 65535)
throw new Error("VOICE_WORKER_PORT is invalid");
export const maxSessions = 16;
const initializeProcessTimeoutMs = 60_000;
-export const sonioxRealtimeModel = "stt-rt-v5";
+export const sonioxRealtimeModel = "stt-rt-v6";
// Hints bias short openings that sound alike across languages (a Mandarin
// greeting vs. "Hallo") without excluding other languages.
export const sonioxLanguageHints = ["zh", "en"];
diff --git a/apps/voice-runtime/src/continuous-dictation.test.ts b/apps/voice-runtime/src/continuous-dictation.test.ts
index ef4896d8..4fc49c78 100644
--- a/apps/voice-runtime/src/continuous-dictation.test.ts
+++ b/apps/voice-runtime/src/continuous-dictation.test.ts
@@ -52,7 +52,7 @@ async function setup() {
});
const provider = new SonioxASRProvider({
apiKey: "test-only",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
dictation: true,
webSocketUrl: `ws://127.0.0.1:${address.port}`,
});
diff --git a/apps/voice-runtime/src/soniox.test.ts b/apps/voice-runtime/src/soniox.test.ts
index ccb9e9e2..f62f730c 100644
--- a/apps/voice-runtime/src/soniox.test.ts
+++ b/apps/voice-runtime/src/soniox.test.ts
@@ -61,7 +61,7 @@ describe("Soniox streaming", () => {
});
const stream = await new SonioxASRProvider({
apiKey: "test",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
webSocketUrl: `ws://127.0.0.1:${port}`,
}).open(new AbortController().signal);
const finals: ASREvent[] = [];
@@ -102,11 +102,11 @@ describe("Soniox streaming", () => {
it("keeps the API key in the first JSON config and omits language hints by default", () => {
const config = sonioxRealtimeSessionConfig({
apiKey: "soniox-secret",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
});
expect(config).toMatchObject({
api_key: "soniox-secret",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
audio_format: "pcm_s16le",
sample_rate: 16000,
num_channels: 1,
@@ -120,7 +120,7 @@ describe("Soniox streaming", () => {
expect(
sonioxRealtimeSessionConfig({
apiKey: "soniox-secret",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
dictation: true,
}),
).toMatchObject({
@@ -132,7 +132,7 @@ describe("Soniox streaming", () => {
expect(
sonioxRealtimeSessionConfig({
apiKey: "soniox-secret",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
diarization: true,
}),
).toEqual(
@@ -143,14 +143,14 @@ describe("Soniox streaming", () => {
expect(
sonioxRealtimeSessionConfig({
apiKey: "soniox-secret",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
diarization: true,
}),
).not.toHaveProperty("enable_endpoint_detection");
expect(
sonioxRealtimeSessionConfig({
apiKey: "soniox-secret",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
languageHints: ["zh", "en"],
}).language_hints,
).toEqual(["zh", "en"]);
@@ -203,7 +203,7 @@ describe("Soniox streaming", () => {
});
const provider = new SonioxASRProvider({
apiKey: "soniox-secret",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
languageHints: ["zh"],
webSocketUrl: `ws://127.0.0.1:${port}`,
dictation: true,
@@ -221,7 +221,7 @@ describe("Soniox streaming", () => {
expect(configs).toEqual([
sonioxRealtimeSessionConfig({
apiKey: "soniox-secret",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
languageHints: ["zh"],
dictation: true,
}),
@@ -264,7 +264,7 @@ describe("Soniox streaming", () => {
});
const stream = await new SonioxASRProvider({
apiKey: "test",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
webSocketUrl: `ws://127.0.0.1:${port}`,
diarization: true,
}).open(new AbortController().signal);
@@ -371,7 +371,7 @@ describe("Soniox streaming", () => {
});
const provider = new SonioxASRProvider({
apiKey: "test",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
webSocketUrl: `ws://127.0.0.1:${port}`,
});
const stream = await provider.open(new AbortController().signal);
@@ -438,7 +438,7 @@ describe("Soniox streaming", () => {
});
const provider = new SonioxASRProvider({
apiKey: "test",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
webSocketUrl: `ws://127.0.0.1:${port}`,
dictation: true,
});
@@ -524,7 +524,7 @@ describe("Soniox streaming", () => {
});
const provider = new SonioxASRProvider({
apiKey: "test",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
webSocketUrl: `ws://127.0.0.1:${port}`,
});
const stream = await provider.open(new AbortController().signal);
@@ -618,7 +618,7 @@ describe("Soniox streaming", () => {
const stream = await SonioxASRStream.connect(
{
apiKey: "test",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
webSocketUrl: `ws://127.0.0.1:${port}`,
},
new AbortController().signal,
@@ -647,7 +647,7 @@ describe("Soniox streaming", () => {
const result = await SonioxASRStream.connect(
{
apiKey: "test",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
webSocketUrl: `ws://127.0.0.1:${port}`,
},
new AbortController().signal,
@@ -668,7 +668,7 @@ describe("Soniox streaming", () => {
const stream = await SonioxASRStream.connect(
{
apiKey: "test",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
webSocketUrl: `ws://127.0.0.1:${port}`,
},
new AbortController().signal,
@@ -739,7 +739,7 @@ describe("Soniox streaming", () => {
});
const stream = await new SonioxASRProvider({
apiKey: "test",
- model: "stt-rt-v5",
+ model: "stt-rt-v6",
webSocketUrl: `ws://127.0.0.1:${port}`,
}).open(new AbortController().signal);
const seen: ASREvent[] = [];