mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
feat(speech): move the speech catalog to transcribe-cpp models
Parakeet v2/v3, Whisper tiny and SenseVoice now download their GGUF builds, which run on transcribe-cpp everywhere, Intel Macs included (on the CPU). A model still holding its old sherpa-onnx download shows "Update to the faster version (<size>)"; updating replaces the old files, and dictating before then says the model needs that update. The five models with no GGUF build are retired and their users moved over: the Japanese Parakeet, the Chinese-English Zipformer and the Paraformer to SenseVoice, and the Korean and Chinese streaming Zipformers to the new Nemotron 3.5 (28 languages). Nemotron's locale codes (ko-KR) are matched from the ISO language setting.
This commit is contained in:
@@ -496,6 +496,7 @@
|
||||
10 src/main/speech/openai-api-key-store.ts
|
||||
2 src/main/speech/speech-model-download-cleanup.ts
|
||||
1 src/main/speech/speech-model-download-transport.ts
|
||||
1 src/main/speech/speech-model-files.ts
|
||||
2 src/main/speech/speech-model-http-download.ts
|
||||
2 src/main/speech/stt-gpu-failure-marker.ts
|
||||
1 src/main/speech/stt-worker-model-config.ts
|
||||
|
||||
@@ -394,6 +394,7 @@
|
||||
"@orca/windows-registry": "workspace:*",
|
||||
"@orca/windows-security": "workspace:*",
|
||||
"@transcribe-cpp/darwin-arm64-metal": "0.4.1",
|
||||
"@transcribe-cpp/darwin-x64-cpu": "0.4.1",
|
||||
"@transcribe-cpp/linux-arm64-cpu-vulkan": "0.4.1",
|
||||
"@transcribe-cpp/linux-x64-cpu-vulkan": "0.4.1",
|
||||
"@transcribe-cpp/win32-x64-cpu-vulkan": "0.4.1",
|
||||
|
||||
Generated
+3
@@ -705,6 +705,9 @@ importers:
|
||||
'@transcribe-cpp/darwin-arm64-metal':
|
||||
specifier: 0.4.1
|
||||
version: 0.4.1
|
||||
'@transcribe-cpp/darwin-x64-cpu':
|
||||
specifier: 0.4.1
|
||||
version: 0.4.1
|
||||
'@transcribe-cpp/linux-arm64-cpu-vulkan':
|
||||
specifier: 0.4.1
|
||||
version: 0.4.1
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { getDefaultVoiceSettings } from '../../../shared/constants'
|
||||
import { MOBILE_DICTATION_RECONNECT_GRACE_MS } from '../../../shared/rpc-contract/speech-params'
|
||||
import { speechModelNotReadyError } from '../../../shared/speech-model-retirement'
|
||||
import { getSpeechModelManager, getSpeechSttService } from '../../speech/speech-runtime-service'
|
||||
import { getCatalogModel, isLocalSpeechModel } from '../../speech/model-catalog'
|
||||
import {
|
||||
@@ -56,7 +57,7 @@ export class RuntimeMobileDictationController {
|
||||
}
|
||||
const modelState = await getSpeechModelManager(store).getModelState(modelId)
|
||||
if (modelState.status !== 'ready') {
|
||||
throw new Error(`voice_model_not_ready:${modelState.status}`)
|
||||
throw new Error(speechModelNotReadyError(modelState))
|
||||
}
|
||||
const clientId = params.clientId
|
||||
if (!clientId) {
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
import type { SpeechModelManifest } from '../../shared/speech-types'
|
||||
import {
|
||||
DICTATION_LANGUAGES,
|
||||
NEMOTRON_DICTATION_LANGUAGES,
|
||||
SENSE_VOICE_DICTATION_LANGUAGES
|
||||
} from '../../shared/dictation-language'
|
||||
import { getSpeechModelDownloadMetadata } from './model-download-catalog'
|
||||
import { getGgufSpeechModelDownload } from './speech-model-gguf-downloads'
|
||||
|
||||
const legacy = (id: Parameters<typeof getSpeechModelDownloadMetadata>[0]) => ({
|
||||
legacyDownloadFiles: getSpeechModelDownloadMetadata(id).downloadFiles
|
||||
})
|
||||
|
||||
export const SPEECH_MODEL_CATALOG: SpeechModelManifest[] = [
|
||||
{
|
||||
@@ -14,10 +20,10 @@ export const SPEECH_MODEL_CATALOG: SpeechModelManifest[] = [
|
||||
type: 'transducer',
|
||||
provider: 'local',
|
||||
language: 'multilingual',
|
||||
...getSpeechModelDownloadMetadata('parakeet-tdt-0.6b-v3-int8'),
|
||||
...getGgufSpeechModelDownload('parakeet-tdt-0.6b-v3-int8'),
|
||||
...legacy('parakeet-tdt-0.6b-v3-int8'),
|
||||
sampleRate: 16000,
|
||||
streaming: false,
|
||||
modelingUnit: 'bpe',
|
||||
recommended: true
|
||||
},
|
||||
{
|
||||
@@ -28,10 +34,10 @@ export const SPEECH_MODEL_CATALOG: SpeechModelManifest[] = [
|
||||
type: 'transducer',
|
||||
provider: 'local',
|
||||
language: 'en',
|
||||
...getSpeechModelDownloadMetadata('parakeet-tdt-0.6b-v2-int8'),
|
||||
...getGgufSpeechModelDownload('parakeet-tdt-0.6b-v2-int8'),
|
||||
...legacy('parakeet-tdt-0.6b-v2-int8'),
|
||||
sampleRate: 16000,
|
||||
streaming: false,
|
||||
modelingUnit: 'bpe'
|
||||
streaming: false
|
||||
},
|
||||
{
|
||||
id: 'zipformer-bilingual-zh-en',
|
||||
@@ -43,7 +49,9 @@ export const SPEECH_MODEL_CATALOG: SpeechModelManifest[] = [
|
||||
...getSpeechModelDownloadMetadata('zipformer-bilingual-zh-en'),
|
||||
sampleRate: 16000,
|
||||
streaming: true,
|
||||
modelingUnit: 'cjkchar+bpe'
|
||||
modelingUnit: 'cjkchar+bpe',
|
||||
// transcribe-cpp has no zipformer; SenseVoice covers Chinese and English.
|
||||
replacedBy: 'sense-voice-zh-en-ja-ko-yue'
|
||||
},
|
||||
{
|
||||
id: 'paraformer-bilingual-zh-en',
|
||||
@@ -55,7 +63,9 @@ export const SPEECH_MODEL_CATALOG: SpeechModelManifest[] = [
|
||||
language: 'zh-en',
|
||||
...getSpeechModelDownloadMetadata('paraformer-bilingual-zh-en'),
|
||||
sampleRate: 16000,
|
||||
streaming: true
|
||||
streaming: true,
|
||||
// transcribe-cpp has no paraformer; SenseVoice covers Chinese and English.
|
||||
replacedBy: 'sense-voice-zh-en-ja-ko-yue'
|
||||
},
|
||||
{
|
||||
id: 'zipformer-streaming-en-20m',
|
||||
@@ -81,7 +91,9 @@ export const SPEECH_MODEL_CATALOG: SpeechModelManifest[] = [
|
||||
...getSpeechModelDownloadMetadata('zipformer-streaming-zh-14m'),
|
||||
sampleRate: 16000,
|
||||
streaming: true,
|
||||
modelingUnit: 'cjkchar'
|
||||
modelingUnit: 'cjkchar',
|
||||
// transcribe-cpp has no zipformer.
|
||||
replacedBy: 'nemotron-3.5-asr-streaming-0.6b'
|
||||
},
|
||||
{
|
||||
id: 'zipformer-streaming-korean',
|
||||
@@ -93,7 +105,9 @@ export const SPEECH_MODEL_CATALOG: SpeechModelManifest[] = [
|
||||
...getSpeechModelDownloadMetadata('zipformer-streaming-korean'),
|
||||
sampleRate: 16000,
|
||||
streaming: true,
|
||||
modelingUnit: 'bpe'
|
||||
modelingUnit: 'bpe',
|
||||
// transcribe-cpp has no zipformer.
|
||||
replacedBy: 'nemotron-3.5-asr-streaming-0.6b'
|
||||
},
|
||||
{
|
||||
id: 'parakeet-tdt-ctc-0.6b-ja-int8',
|
||||
@@ -104,7 +118,9 @@ export const SPEECH_MODEL_CATALOG: SpeechModelManifest[] = [
|
||||
language: 'ja',
|
||||
...getSpeechModelDownloadMetadata('parakeet-tdt-ctc-0.6b-ja-int8'),
|
||||
sampleRate: 16000,
|
||||
streaming: false
|
||||
streaming: false,
|
||||
// No GGUF conversion exists; SenseVoice covers Japanese.
|
||||
replacedBy: 'sense-voice-zh-en-ja-ko-yue'
|
||||
},
|
||||
{
|
||||
id: 'whisper-tiny',
|
||||
@@ -113,7 +129,8 @@ export const SPEECH_MODEL_CATALOG: SpeechModelManifest[] = [
|
||||
type: 'whisper',
|
||||
provider: 'local',
|
||||
language: 'multilingual',
|
||||
...getSpeechModelDownloadMetadata('whisper-tiny'),
|
||||
...getGgufSpeechModelDownload('whisper-tiny'),
|
||||
...legacy('whisper-tiny'),
|
||||
dictationLanguages: DICTATION_LANGUAGES,
|
||||
sampleRate: 16000,
|
||||
streaming: false
|
||||
@@ -126,11 +143,26 @@ export const SPEECH_MODEL_CATALOG: SpeechModelManifest[] = [
|
||||
type: 'senseVoice',
|
||||
provider: 'local',
|
||||
language: 'multilingual',
|
||||
...getSpeechModelDownloadMetadata('sense-voice-zh-en-ja-ko-yue'),
|
||||
...getGgufSpeechModelDownload('sense-voice-zh-en-ja-ko-yue'),
|
||||
...legacy('sense-voice-zh-en-ja-ko-yue'),
|
||||
dictationLanguages: SENSE_VOICE_DICTATION_LANGUAGES,
|
||||
sampleRate: 16000,
|
||||
streaming: false
|
||||
},
|
||||
{
|
||||
id: 'nemotron-3.5-asr-streaming-0.6b',
|
||||
label: 'Nemotron 3.5',
|
||||
description:
|
||||
'Korean, Chinese, Japanese and many more languages, with automatic language detection.',
|
||||
type: 'transducer',
|
||||
provider: 'local',
|
||||
language: 'multilingual',
|
||||
...getGgufSpeechModelDownload('nemotron-3.5-asr-streaming-0.6b'),
|
||||
dictationLanguages: NEMOTRON_DICTATION_LANGUAGES,
|
||||
sampleRate: 16000,
|
||||
// Decoded per chunk for now; live text arrives with the streaming engine path.
|
||||
streaming: false
|
||||
},
|
||||
{
|
||||
id: 'openai-gpt-4o-mini-transcribe',
|
||||
label: 'GPT-4o mini Transcribe',
|
||||
|
||||
@@ -134,6 +134,32 @@ describe('ModelManager', () => {
|
||||
}
|
||||
})
|
||||
|
||||
it('reports a model downloaded in the old sherpa-onnx format as needing an update', async () => {
|
||||
const dir = mkdtempSync(join(tmpdir(), 'orca-model-manager-'))
|
||||
try {
|
||||
const manager = new ModelManager(dir, openElectronSpeechDownloadRequest)
|
||||
const modelDir = manager.getModelDir('parakeet-tdt-0.6b-v2-int8')
|
||||
mkdirSync(modelDir, { recursive: true })
|
||||
for (const [name, size] of [
|
||||
['encoder.int8.onnx', 652_184_296],
|
||||
['decoder.int8.onnx', 7_257_753],
|
||||
['joiner.int8.onnx', 1_739_080],
|
||||
['tokens.txt', 9_384]
|
||||
] as const) {
|
||||
writeFileSync(join(modelDir, name), '')
|
||||
truncateSync(join(modelDir, name), size)
|
||||
}
|
||||
|
||||
await expect(manager.getModelState('parakeet-tdt-0.6b-v2-int8')).resolves.toEqual({
|
||||
id: 'parakeet-tdt-0.6b-v2-int8',
|
||||
status: 'not-downloaded',
|
||||
needsUpdate: true
|
||||
})
|
||||
} finally {
|
||||
rmSync(dir, { recursive: true, force: true })
|
||||
}
|
||||
})
|
||||
|
||||
it('aborts an in-flight model download request when cancelled', async () => {
|
||||
const dir = mkdtempSync(join(tmpdir(), 'orca-model-manager-'))
|
||||
try {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { existsSync, mkdirSync, rmSync, statSync } from 'node:fs'
|
||||
import { existsSync, mkdirSync, rmSync } from 'node:fs'
|
||||
import { rename, rm } from 'node:fs/promises'
|
||||
import { join, relative, resolve } from 'node:path'
|
||||
import type {
|
||||
@@ -14,6 +14,7 @@ import {
|
||||
type SpeechModelCacheDir
|
||||
} from './model-cache-path'
|
||||
import { SpeechModelDownloadTransport } from './speech-model-download-transport'
|
||||
import { hasSpeechModelFiles } from './speech-model-files'
|
||||
import type { OpenSpeechDownloadRequest } from './speech-model-download-response'
|
||||
import { getAppEnvironment } from '../../shared/app-environment'
|
||||
import {
|
||||
@@ -108,11 +109,14 @@ export class ModelManager extends SpeechModelDownloadTransport {
|
||||
}
|
||||
|
||||
const modelDir = this.getModelDir(modelId)
|
||||
if (existsSync(modelDir) && this.validateModelFiles(manifest, modelDir)) {
|
||||
if (existsSync(modelDir) && hasSpeechModelFiles(manifest.downloadFiles, modelDir)) {
|
||||
const state: SpeechModelState = { id: modelId, status: 'ready' }
|
||||
this.modelStates.set(modelId, state)
|
||||
return state
|
||||
}
|
||||
if (existsSync(modelDir) && hasSpeechModelFiles(manifest.legacyDownloadFiles, modelDir)) {
|
||||
return { id: modelId, status: 'not-downloaded', needsUpdate: true }
|
||||
}
|
||||
|
||||
return { id: modelId, status: 'not-downloaded' }
|
||||
}
|
||||
@@ -135,19 +139,6 @@ export class ModelManager extends SpeechModelDownloadTransport {
|
||||
return modelDir
|
||||
}
|
||||
|
||||
private validateModelFiles(manifest: SpeechModelManifest, modelDir: string): boolean {
|
||||
if (!manifest.downloadFiles) {
|
||||
return false
|
||||
}
|
||||
return manifest.downloadFiles.every(({ name, sizeBytes }) => {
|
||||
try {
|
||||
return statSync(join(modelDir, name)).size === sizeBytes
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
async downloadModel(modelId: string): Promise<void> {
|
||||
// Do not await migration: downloads cannot race it, and cancellation needs synchronous setup.
|
||||
if (this.activeDownloads.has(modelId)) {
|
||||
@@ -166,7 +157,7 @@ export class ModelManager extends SpeechModelDownloadTransport {
|
||||
}
|
||||
|
||||
const modelDir = this.getModelDir(modelId)
|
||||
if (existsSync(modelDir) && this.validateModelFiles(manifest, modelDir)) {
|
||||
if (existsSync(modelDir) && hasSpeechModelFiles(manifest.downloadFiles, modelDir)) {
|
||||
this.updateState(modelId, 'ready')
|
||||
return
|
||||
}
|
||||
@@ -330,7 +321,7 @@ export class ModelManager extends SpeechModelDownloadTransport {
|
||||
completedBytes += file.sizeBytes
|
||||
}
|
||||
|
||||
if (!this.validateModelFiles(manifest, stagingDir)) {
|
||||
if (!hasSpeechModelFiles(manifest.downloadFiles, stagingDir)) {
|
||||
throw new Error('Model files missing after download')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
import { statSync } from 'node:fs'
|
||||
import { join } from 'node:path'
|
||||
import type { SpeechModelDownloadFile } from '../../shared/speech-types'
|
||||
|
||||
/** Whether every listed file is in `modelDir` at its expected size. */
|
||||
export function hasSpeechModelFiles(
|
||||
files: readonly SpeechModelDownloadFile[] | undefined,
|
||||
modelDir: string
|
||||
): boolean {
|
||||
if (!files) {
|
||||
return false
|
||||
}
|
||||
return files.every(({ name, sizeBytes }) => {
|
||||
try {
|
||||
return statSync(join(modelDir, name)).size === sizeBytes
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
import type { SpeechModelDownloadFile } from '../../shared/speech-types'
|
||||
|
||||
type GgufDownload = readonly [
|
||||
repository: string,
|
||||
revision: string,
|
||||
name: string,
|
||||
sizeBytes: number,
|
||||
sha256: string
|
||||
]
|
||||
|
||||
// handy-computer's GGUF conversions for transcribe-cpp 0.4.x, pinned by revision and hash.
|
||||
const GGUF_DOWNLOADS = {
|
||||
'parakeet-tdt-0.6b-v3-int8': [
|
||||
'handy-computer/parakeet-tdt-0.6b-v3-gguf',
|
||||
'85ac09ea12fc4b1112fa76810059364bc6adc9de',
|
||||
'parakeet-tdt-0.6b-v3-Q8_0.gguf',
|
||||
739_508_576,
|
||||
'5859f77944efcd8eafa23a6350731960b2b55b2203df51f319665c807d802cc7'
|
||||
],
|
||||
'parakeet-tdt-0.6b-v2-int8': [
|
||||
'handy-computer/parakeet-tdt-0.6b-v2-gguf',
|
||||
'07cee0616125a08ef619729bb47f40ef747e4bc4',
|
||||
'parakeet-tdt-0.6b-v2-Q8_0.gguf',
|
||||
729_574_912,
|
||||
'f0d0e99cebb6d3b83f1f7069b82b5d3c2e39a54545b0da039cb4bafd9c4e5caa'
|
||||
],
|
||||
'whisper-tiny': [
|
||||
'handy-computer/whisper-tiny-gguf',
|
||||
'6687f30c99641ee265df421e582354adbc8848fc',
|
||||
'whisper-tiny-Q8_0.gguf',
|
||||
45_981_088,
|
||||
'325b9c7997cd1eff81ef709d55766565e71be696130cc3a3d444713798706834'
|
||||
],
|
||||
'sense-voice-zh-en-ja-ko-yue': [
|
||||
'handy-computer/SenseVoiceSmall-gguf',
|
||||
'4a08b8e900b38a977e32eb08d5d0697d6e72ba04',
|
||||
'SenseVoiceSmall-Q8_0.gguf',
|
||||
252_684_608,
|
||||
'6c759ee4c9748c9b3f7a5a60ca74f0f7e685fb9d45d1378fce7cfd62f59adf29'
|
||||
],
|
||||
'nemotron-3.5-asr-streaming-0.6b': [
|
||||
'handy-computer/nemotron-3.5-asr-streaming-0.6b-gguf',
|
||||
'6d44e540bc31b0de1dbe174a3cea87f53a7f22fb',
|
||||
'nemotron-3.5-asr-streaming-0.6b-Q8_0.gguf',
|
||||
751_094_240,
|
||||
'b94545b313b3223fda7b2857a52681da813935c2127643d1e9ff0c23d988089c'
|
||||
]
|
||||
} satisfies Record<string, GgufDownload>
|
||||
|
||||
export type GgufSpeechModelId = keyof typeof GGUF_DOWNLOADS
|
||||
|
||||
export function getGgufSpeechModelDownload(modelId: GgufSpeechModelId): {
|
||||
downloadFiles: SpeechModelDownloadFile[]
|
||||
files: string[]
|
||||
sizeBytes: number
|
||||
} {
|
||||
const [repository, revision, name, sizeBytes, sha256] = GGUF_DOWNLOADS[modelId]
|
||||
const url = `https://huggingface.co/${repository}/resolve/${revision}/${encodeURIComponent(name)}?download=true`
|
||||
return { downloadFiles: [{ name, url, sizeBytes, sha256 }], files: [name], sizeBytes }
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import { SPEECH_MODEL_NEEDS_UPDATE_ERROR } from '../../shared/speech-model-retirement'
|
||||
import { engineDictationLanguage } from '../../shared/dictation-language'
|
||||
import type { SpeechModelManifest } from '../../shared/speech-types'
|
||||
import { getCatalogModel } from './model-catalog'
|
||||
@@ -125,7 +126,11 @@ async function requireModelReady(state: SttSessionState, modelId: string): Promi
|
||||
const modelState = await state.modelManager.getModelState(modelId)
|
||||
if (modelState.status !== 'ready') {
|
||||
await teardownIdleSttEngine(state, modelId)
|
||||
throw new Error(`Model not ready: ${modelState.status}`)
|
||||
throw new Error(
|
||||
modelState.needsUpdate
|
||||
? SPEECH_MODEL_NEEDS_UPDATE_ERROR
|
||||
: `Model not ready: ${modelState.status}`
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,11 +45,15 @@ export async function createTranscribeCppRecognizer(
|
||||
// The child runs one call at a time, so every stream can share one session.
|
||||
const session = model.createSession({ nThreads: performanceCoreThreads() })
|
||||
const vocabulary = await readVocabulary(init.hotwordsFilePath)
|
||||
const { languages } = model.capabilities
|
||||
// The setting is ISO-639-1; Nemotron names locales (ko-KR) and rejects the bare code.
|
||||
const language = init.language
|
||||
? (languages.find((code) => code === init.language) ??
|
||||
languages.find((code) => code.startsWith(`${init.language}-`)))
|
||||
: undefined
|
||||
const options: TranscribeCpp.TranscribeOptions = {
|
||||
timestamps: 'none',
|
||||
...(init.language && model.capabilities.languages.includes(init.language)
|
||||
? { language: init.language }
|
||||
: {}),
|
||||
...(language ? { language } : {}),
|
||||
...(vocabulary.length > 0 && model.supports('vocabulary') ? { vocabulary } : {})
|
||||
}
|
||||
const modelRate = model.capabilities.nativeSampleRate || init.sampleRate
|
||||
|
||||
@@ -3,6 +3,7 @@ import { useAppStore } from '@/store'
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import { compactIpcErrorMessage } from '@/lib/ipc-error'
|
||||
import { hostDictationErrorMessage } from '../../../../shared/host-dictation-error-messages'
|
||||
import { SPEECH_MODEL_NEEDS_UPDATE_ERROR } from '../../../../shared/speech-model-retirement'
|
||||
|
||||
function openVoiceSettingsAction(): { label: string; onClick: () => void } {
|
||||
return {
|
||||
@@ -76,6 +77,14 @@ export function showDictationStartErrorToast(message: string): void {
|
||||
'Microphone access denied. Grant access in system settings, then restart Orca.'
|
||||
)
|
||||
)
|
||||
} else if (message.includes(SPEECH_MODEL_NEEDS_UPDATE_ERROR)) {
|
||||
toast(
|
||||
translate(
|
||||
'auto.components.dictation.DictationController.modelNeedsUpdate',
|
||||
'Your speech model needs an update to keep working. Update it to the faster version in Settings > Voice.'
|
||||
),
|
||||
{ action: openVoiceSettingsAction() }
|
||||
)
|
||||
} else if (message.includes('not ready') || detail.startsWith('voice_model_not_ready')) {
|
||||
toast(
|
||||
translate(
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
import { defineFixture } from '../../../component-fixtures/component-fixture'
|
||||
import { getDefaultVoiceSettings } from '../../../../../shared/constants'
|
||||
import type { SpeechModelManifest } from '../../../../../shared/speech-types'
|
||||
import { VoiceSpeechModelSection } from './VoiceSpeechModelSection'
|
||||
|
||||
function model(id: string, label: string, sizeBytes: number, description: string) {
|
||||
return {
|
||||
id,
|
||||
label,
|
||||
description,
|
||||
type: 'transducer',
|
||||
provider: 'local',
|
||||
language: 'en',
|
||||
sizeBytes,
|
||||
sampleRate: 16000,
|
||||
streaming: false
|
||||
} satisfies SpeechModelManifest
|
||||
}
|
||||
|
||||
const catalog = [
|
||||
model('v3', 'Parakeet TDT v3', 739_508_576, 'Highest accuracy for 25 European languages.'),
|
||||
model(
|
||||
'v2',
|
||||
'Parakeet TDT v2',
|
||||
729_574_912,
|
||||
'English only. Faster than v3 with similar accuracy.'
|
||||
),
|
||||
model(
|
||||
'nemotron',
|
||||
'Nemotron 3.5',
|
||||
751_094_240,
|
||||
'28 languages including Korean, Chinese and Japanese.'
|
||||
)
|
||||
]
|
||||
|
||||
export const updateAvailable = defineFixture({
|
||||
width: 640,
|
||||
render: () => (
|
||||
<VoiceSpeechModelSection
|
||||
voiceSettings={{ ...getDefaultVoiceSettings(), enabled: true, sttModel: 'v2' }}
|
||||
catalog={catalog}
|
||||
modelStates={[
|
||||
{ id: 'v3', status: 'ready' },
|
||||
{ id: 'v2', status: 'not-downloaded', needsUpdate: true },
|
||||
{ id: 'nemotron', status: 'not-downloaded' }
|
||||
]}
|
||||
onUpdateVoiceSettings={() => {}}
|
||||
onOpenOpenAiDialog={() => {}}
|
||||
onRefreshModelStates={() => {}}
|
||||
/>
|
||||
),
|
||||
interact: (frame) => {
|
||||
frame
|
||||
.querySelector<HTMLButtonElement>('button')
|
||||
?.dispatchEvent(
|
||||
new PointerEvent('pointerdown', { bubbles: true, button: 0, pointerType: 'mouse' })
|
||||
)
|
||||
}
|
||||
})
|
||||
@@ -92,6 +92,8 @@ export function VoiceSpeechModelSection({
|
||||
mState?.status === 'downloading' || mState?.status === 'extracting'
|
||||
const isActive = voiceSettings.sttModel === manifest.id
|
||||
const isCloud = manifest.provider === 'openai'
|
||||
// Only the old sherpa-onnx files are on disk; downloading replaces them.
|
||||
const needsUpdate = mState?.needsUpdate === true && !isDownloading
|
||||
const deletePending = pendingDeleteModelIds.has(manifest.id)
|
||||
const sizeMb = manifest.sizeBytes ? Math.round(manifest.sizeBytes / 1_000_000) : null
|
||||
|
||||
@@ -164,8 +166,17 @@ export function VoiceSpeechModelSection({
|
||||
<p className="text-[11px] text-muted-foreground mt-0.5 leading-snug">
|
||||
{speechModelDescription(manifest)}
|
||||
</p>
|
||||
{needsUpdate && (
|
||||
<p className="text-[11px] font-medium mt-0.5 leading-snug">
|
||||
{t(
|
||||
'auto.components.settings.VoicePane.updateToFasterVersion',
|
||||
'Update to the faster version ({{value0}} MB)',
|
||||
{ value0: sizeMb }
|
||||
)}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
{!isCloud && isReady ? (
|
||||
{!isCloud && (isReady || needsUpdate) ? (
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
import type { SpeechModelManifest } from '../../../../../shared/speech-types'
|
||||
import { translate } from '@/i18n/i18n'
|
||||
|
||||
// Models transcribe-cpp can't run; their users moved to SenseVoice or Nemotron.
|
||||
const retiredForEngine = (): string =>
|
||||
translate(
|
||||
'settings.voice.modelDescriptions.retiredForEngine',
|
||||
'No longer offered: the speech engine can no longer run it. Delete it to free up space.'
|
||||
)
|
||||
|
||||
const DESCRIPTIONS: Record<string, () => string> = {
|
||||
'parakeet-tdt-0.6b-v3-int8': () =>
|
||||
translate(
|
||||
@@ -12,36 +19,16 @@ const DESCRIPTIONS: Record<string, () => string> = {
|
||||
'settings.voice.modelDescriptions.parakeetV2',
|
||||
'English only. Faster than v3 with similar accuracy. Punctuation and capitalization.'
|
||||
),
|
||||
'zipformer-bilingual-zh-en': () =>
|
||||
translate(
|
||||
'settings.voice.modelDescriptions.zipformerBilingual',
|
||||
'Chinese + English with code-switching. Low-latency real-time streaming.'
|
||||
),
|
||||
'paraformer-bilingual-zh-en': () =>
|
||||
translate(
|
||||
'settings.voice.modelDescriptions.paraformerBilingual',
|
||||
'Chinese (Mandarin + dialects) + English. Strong on accented and regional Chinese.'
|
||||
),
|
||||
'zipformer-bilingual-zh-en': retiredForEngine,
|
||||
'paraformer-bilingual-zh-en': retiredForEngine,
|
||||
'zipformer-streaming-en-20m': () =>
|
||||
translate(
|
||||
'settings.voice.modelDescriptions.zipformerStreamingEnRetired',
|
||||
'No longer offered: it drops the start of sentences. Delete it to free up space.'
|
||||
),
|
||||
'zipformer-streaming-zh-14m': () =>
|
||||
translate(
|
||||
'settings.voice.modelDescriptions.zipformerStreamingZh',
|
||||
'Chinese only. Ultra-lightweight 14M-param model, ideal for low-resource devices.'
|
||||
),
|
||||
'zipformer-streaming-korean': () =>
|
||||
translate(
|
||||
'settings.voice.modelDescriptions.zipformerStreamingKo',
|
||||
'Korean only. Low-latency real-time streaming.'
|
||||
),
|
||||
'parakeet-tdt-ctc-0.6b-ja-int8': () =>
|
||||
translate(
|
||||
'settings.voice.modelDescriptions.parakeetJa',
|
||||
'Japanese only. Trained on 35k+ hours of natural speech. Punctuation included.'
|
||||
),
|
||||
'zipformer-streaming-zh-14m': retiredForEngine,
|
||||
'zipformer-streaming-korean': retiredForEngine,
|
||||
'parakeet-tdt-ctc-0.6b-ja-int8': retiredForEngine,
|
||||
'whisper-tiny': () =>
|
||||
translate(
|
||||
'settings.voice.modelDescriptions.whisperTiny',
|
||||
@@ -52,6 +39,11 @@ const DESCRIPTIONS: Record<string, () => string> = {
|
||||
'settings.voice.modelDescriptions.senseVoice',
|
||||
'Chinese, English, Japanese, Korean, and Cantonese with automatic language detection.'
|
||||
),
|
||||
'nemotron-3.5-asr-streaming-0.6b': () =>
|
||||
translate(
|
||||
'settings.voice.modelDescriptions.nemotron',
|
||||
'Korean, Chinese, Japanese and many more languages, with automatic language detection.'
|
||||
),
|
||||
'openai-gpt-4o-mini-transcribe': () =>
|
||||
translate(
|
||||
'settings.voice.modelDescriptions.gpt4oMiniTranscribe',
|
||||
|
||||
@@ -958,16 +958,13 @@
|
||||
"modelDescriptions": {
|
||||
"parakeetV3": "Höchste Genauigkeit für 25 europäische Sprachen. Zeichensetzung, Groß- und Kleinschreibung und Zeitstempel auf Wortebene.",
|
||||
"parakeetV2": "Nur Englisch. Schneller als v3 bei ähnlicher Genauigkeit. Zeichensetzung und Groß- und Kleinschreibung.",
|
||||
"zipformerBilingual": "Chinesisch + Englisch mit Sprachwechsel. Echtzeit-Streaming mit geringer Latenz.",
|
||||
"paraformerBilingual": "Chinesisch (Mandarin + Dialekte) + Englisch. Stark bei Akzenten und regionalen Varianten des Chinesischen.",
|
||||
"zipformerStreamingEnRetired": "Wird nicht mehr angeboten: Es verschluckt den Anfang von Sätzen. Löschen Sie es, um Speicherplatz freizugeben.",
|
||||
"zipformerStreamingZh": "Nur Chinesisch. Sehr schlankes Modell mit 14 Mio. Parametern, ideal für Geräte mit wenig Ressourcen.",
|
||||
"zipformerStreamingKo": "Nur Koreanisch. Echtzeit-Streaming mit geringer Latenz.",
|
||||
"parakeetJa": "Nur Japanisch. Mit über 35.000 Stunden natürlicher Sprache trainiert. Mit Zeichensetzung.",
|
||||
"whisperTiny": "Über 90 Sprachen. Geringere Genauigkeit als Parakeet, aber die größte Sprachabdeckung.",
|
||||
"senseVoice": "Chinesisch, Englisch, Japanisch, Koreanisch und Kantonesisch mit automatischer Erkennung der gesprochenen Sprache.",
|
||||
"gpt4oMiniTranscribe": "Cloud-Transkription mit hoher Genauigkeit und geringen Kosten. Benötigt einen OpenAI-API-Schlüssel.",
|
||||
"gpt4oTranscribe": "Cloud-Transkription mit höherer Genauigkeit. Benötigt einen OpenAI-API-Schlüssel."
|
||||
"gpt4oTranscribe": "Cloud-Transkription mit höherer Genauigkeit. Benötigt einen OpenAI-API-Schlüssel.",
|
||||
"retiredForEngine": "Nicht mehr verfügbar: Die Spracherkennung kann dieses Modell nicht mehr ausführen. Löschen Sie es, um Speicherplatz freizugeben.",
|
||||
"nemotron": "Koreanisch, Chinesisch, Japanisch und viele weitere Sprachen, mit automatischer Spracherkennung."
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
@@ -9474,7 +9471,8 @@
|
||||
"dictationShortcutDescription": "Mit {{shortcut}} Text in den jeweils fokussierten Bereich diktieren.",
|
||||
"dictationModesDescription": "Umschalten: {{shortcut}} einmal zum Starten und erneut zum Stoppen drücken. Gedrückt halten: Diktieren, solange {{shortcut}} gedrückt bleibt.",
|
||||
"speechGpuLabel": "GPU verwenden",
|
||||
"speechGpuDescription": "Sprache auf der Grafikkarte erkennen, wenn sie funktioniert, und auf der CPU, wenn sie versagt. Deaktivieren, wenn das Diktieren deinen Computer einfrieren oder neu starten lässt."
|
||||
"speechGpuDescription": "Sprache auf der Grafikkarte erkennen, wenn sie funktioniert, und auf der CPU, wenn sie versagt. Deaktivieren, wenn das Diktieren Ihren Computer einfrieren oder neu starten lässt.",
|
||||
"updateToFasterVersion": "Auf die schnellere Version aktualisieren ({{value0}} MB)"
|
||||
},
|
||||
"WorktreeSymlinksSection": {
|
||||
"1c1e35b219": "{{value0}} entfernen",
|
||||
@@ -16974,6 +16972,7 @@
|
||||
"noModel": "Kein Sprachmodell ausgewählt. Laden Sie eines unter Einstellungen > Spracheingabe herunter.",
|
||||
"disabled": "Spracheingabe ist deaktiviert. Aktivieren Sie sie unter Einstellungen > Spracheingabe.",
|
||||
"notReady": "Sprachmodell nicht bereit. Laden Sie es unter Einstellungen > Spracheingabe herunter.",
|
||||
"modelNeedsUpdate": "Ihr Sprachmodell braucht ein Update, um weiter zu funktionieren. Aktualisieren Sie es unter Einstellungen > Spracheingabe auf die schnellere Version.",
|
||||
"unknownModel": "Das ausgewählte Modell ist nicht mehr verfügbar. Wählen Sie unter Einstellungen > Spracheingabe ein anderes aus.",
|
||||
"5d2c3e7ae3": "Keine Sprache erkannt.",
|
||||
"micFallback": "Ausgewähltes Mikrofon nicht verfügbar. Systemstandard wird verwendet.",
|
||||
|
||||
@@ -1148,16 +1148,13 @@
|
||||
"modelDescriptions": {
|
||||
"parakeetV3": "Highest accuracy for 25 European languages. Punctuation, capitalization, and word-level timestamps.",
|
||||
"parakeetV2": "English only. Faster than v3 with similar accuracy. Punctuation and capitalization.",
|
||||
"zipformerBilingual": "Chinese + English with code-switching. Low-latency real-time streaming.",
|
||||
"paraformerBilingual": "Chinese (Mandarin + dialects) + English. Strong on accented and regional Chinese.",
|
||||
"zipformerStreamingEnRetired": "No longer offered: it drops the start of sentences. Delete it to free up space.",
|
||||
"zipformerStreamingZh": "Chinese only. Ultra-lightweight 14M-param model, ideal for low-resource devices.",
|
||||
"zipformerStreamingKo": "Korean only. Low-latency real-time streaming.",
|
||||
"parakeetJa": "Japanese only. Trained on 35k+ hours of natural speech. Punctuation included.",
|
||||
"whisperTiny": "90+ languages. Lower accuracy than Parakeet but broadest language coverage.",
|
||||
"senseVoice": "Chinese, English, Japanese, Korean, and Cantonese with automatic language detection.",
|
||||
"gpt4oMiniTranscribe": "Cloud transcription with strong accuracy and low cost. Requires an OpenAI API key.",
|
||||
"gpt4oTranscribe": "Cloud transcription with higher accuracy. Requires an OpenAI API key."
|
||||
"gpt4oTranscribe": "Cloud transcription with higher accuracy. Requires an OpenAI API key.",
|
||||
"retiredForEngine": "No longer offered: the speech engine can no longer run it. Delete it to free up space.",
|
||||
"nemotron": "Korean, Chinese, Japanese and many more languages, with automatic language detection."
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
@@ -9775,7 +9772,8 @@
|
||||
"dictationShortcutDescription": "Press {{shortcut}} to dictate text into any focused pane.",
|
||||
"dictationModesDescription": "Toggle: press {{shortcut}} once to start, again to stop. Hold: dictate while {{shortcut}} is held.",
|
||||
"speechGpuLabel": "Use GPU",
|
||||
"speechGpuDescription": "Recognize speech on the graphics card when it works, and on the CPU when it fails. Turn off if dictation freezes or restarts your computer."
|
||||
"speechGpuDescription": "Recognize speech on the graphics card when it works, and on the CPU when it fails. Turn off if dictation freezes or restarts your computer.",
|
||||
"updateToFasterVersion": "Update to the faster version ({{value0}} MB)"
|
||||
},
|
||||
"WorktreeSymlinksSection": {
|
||||
"1c1e35b219": "Remove {{value0}}",
|
||||
@@ -17394,6 +17392,7 @@
|
||||
"noModel": "No speech model selected. Download one in Settings > Voice.",
|
||||
"disabled": "Voice dictation is disabled. Enable it in Settings > Voice.",
|
||||
"notReady": "Speech model not ready. Download it in Settings > Voice.",
|
||||
"modelNeedsUpdate": "Your speech model needs an update to keep working. Update it to the faster version in Settings > Voice.",
|
||||
"unknownModel": "Selected model is no longer available. Please choose another in Settings > Voice.",
|
||||
"5d2c3e7ae3": "No speech detected.",
|
||||
"micFallback": "Selected microphone unavailable. Using system default.",
|
||||
|
||||
@@ -507,16 +507,13 @@
|
||||
"modelDescriptions": {
|
||||
"parakeetV3": "Máxima precisión para 25 idiomas europeos. Puntuación, mayúsculas y minúsculas y marcas de tiempo por palabra.",
|
||||
"parakeetV2": "Solo inglés. Más rápido que v3 con una precisión similar. Puntuación y mayúsculas y minúsculas.",
|
||||
"zipformerBilingual": "Chino + inglés con alternancia de idiomas. Streaming en tiempo real de baja latencia.",
|
||||
"paraformerBilingual": "Chino (mandarín + dialectos) + inglés. Buen rendimiento con acentos y variantes regionales del chino.",
|
||||
"zipformerStreamingEnRetired": "Ya no se ofrece: omite el comienzo de las frases. Elimínalo para liberar espacio.",
|
||||
"zipformerStreamingZh": "Solo chino. Modelo ultraligero de 14 millones de parámetros, ideal para dispositivos con pocos recursos.",
|
||||
"zipformerStreamingKo": "Solo coreano. Streaming en tiempo real de baja latencia.",
|
||||
"parakeetJa": "Solo japonés. Entrenado con más de 35 000 horas de habla natural. Incluye puntuación.",
|
||||
"whisperTiny": "Más de 90 idiomas. Menor precisión que Parakeet, pero con la mayor cobertura de idiomas.",
|
||||
"senseVoice": "Chino, inglés, japonés, coreano y cantonés con detección automática de idioma.",
|
||||
"gpt4oMiniTranscribe": "Transcripción en la nube con alta precisión y bajo coste. Requiere una clave API de OpenAI.",
|
||||
"gpt4oTranscribe": "Transcripción en la nube con mayor precisión. Requiere una clave API de OpenAI."
|
||||
"gpt4oTranscribe": "Transcripción en la nube con mayor precisión. Requiere una clave API de OpenAI.",
|
||||
"retiredForEngine": "Ya no se ofrece: el motor de voz ya no puede ejecutarlo. Elimínelo para liberar espacio.",
|
||||
"nemotron": "Coreano, chino, japonés y muchos idiomas más, con detección automática del idioma."
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
@@ -9072,7 +9069,8 @@
|
||||
"dictationShortcutDescription": "Pulsa {{shortcut}} para dictar texto en cualquier panel con foco.",
|
||||
"dictationModesDescription": "Alternar: pulsa {{shortcut}} una vez para empezar y otra para parar. Mantener: dicta mientras {{shortcut}} se mantiene presionado.",
|
||||
"speechGpuLabel": "Usar GPU",
|
||||
"speechGpuDescription": "Reconoce la voz en la tarjeta gráfica cuando funciona y en la CPU cuando falla. Desactívalo si el dictado congela o reinicia tu equipo."
|
||||
"speechGpuDescription": "Reconoce la voz en la tarjeta gráfica cuando funciona y en la CPU cuando falla. Desactívelo si el dictado congela o reinicia su equipo.",
|
||||
"updateToFasterVersion": "Actualizar a la versión más rápida ({{value0}} MB)"
|
||||
},
|
||||
"WorktreeSymlinksSection": {
|
||||
"1c1e35b219": "Quitar {{value0}}",
|
||||
@@ -16701,6 +16699,7 @@
|
||||
"noModel": "No hay ningún modelo de voz seleccionado. Descargue uno en Configuración > Voz.",
|
||||
"disabled": "El dictado por voz está desactivado. Actívelo en Configuración > Voz.",
|
||||
"notReady": "El modelo de voz no está listo. Descárguelo en Configuración > Voz.",
|
||||
"modelNeedsUpdate": "Su modelo de voz necesita una actualización para seguir funcionando. Actualícelo a la versión más rápida en Configuración > Voz.",
|
||||
"unknownModel": "El modelo seleccionado ya no está disponible. Elija otro en Configuración > Voz.",
|
||||
"5d2c3e7ae3": "No se detectó ninguna voz.",
|
||||
"micFallback": "Micrófono seleccionado no disponible. Se usará el predeterminado del sistema.",
|
||||
|
||||
@@ -728,16 +728,13 @@
|
||||
"modelDescriptions": {
|
||||
"parakeetV3": "Précision maximale pour 25 langues européennes. Ponctuation, majuscules et minuscules, et horodatage par mot.",
|
||||
"parakeetV2": "Anglais uniquement. Plus rapide que v3 avec une précision similaire. Ponctuation, majuscules et minuscules.",
|
||||
"zipformerBilingual": "Chinois + anglais avec alternance de langues. Streaming en temps réel à faible latence.",
|
||||
"paraformerBilingual": "Chinois (mandarin + dialectes) + anglais. Performant avec les accents et les variantes régionales du chinois.",
|
||||
"zipformerStreamingEnRetired": "N’est plus proposé : il omet le début des phrases. Supprimez-le pour libérer de l’espace.",
|
||||
"zipformerStreamingZh": "Chinois uniquement. Modèle ultraléger de 14 millions de paramètres, idéal pour les appareils aux ressources limitées.",
|
||||
"zipformerStreamingKo": "Coréen uniquement. Streaming en temps réel à faible latence.",
|
||||
"parakeetJa": "Japonais uniquement. Entraîné sur plus de 35 000 heures de parole naturelle. Ponctuation incluse.",
|
||||
"whisperTiny": "Plus de 90 langues. Moins précis que Parakeet, mais offre la plus large couverture linguistique.",
|
||||
"senseVoice": "Chinois, anglais, japonais, coréen et cantonais avec détection automatique de la langue.",
|
||||
"gpt4oMiniTranscribe": "Transcription dans le cloud avec une grande précision et un faible coût. Nécessite une clé API OpenAI.",
|
||||
"gpt4oTranscribe": "Transcription dans le cloud avec une précision supérieure. Nécessite une clé API OpenAI."
|
||||
"gpt4oTranscribe": "Transcription dans le cloud avec une précision supérieure. Nécessite une clé API OpenAI.",
|
||||
"retiredForEngine": "N’est plus proposé : le moteur vocal ne peut plus l’exécuter. Supprimez-le pour libérer de l’espace.",
|
||||
"nemotron": "Coréen, chinois, japonais et bien d’autres langues, avec détection automatique de la langue."
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
@@ -9343,7 +9340,8 @@
|
||||
"dictationShortcutDescription": "Appuyez sur {{shortcut}} pour dicter du texte dans n'importe quel volet actif.",
|
||||
"dictationModesDescription": "Bascule : appuyez une fois sur {{shortcut}} pour démarrer, puis à nouveau pour arrêter. Maintien : dictez tant que {{shortcut}} est maintenu.",
|
||||
"speechGpuLabel": "Utiliser le GPU",
|
||||
"speechGpuDescription": "Reconnaît la parole sur la carte graphique quand elle fonctionne, et sur le processeur en cas d’échec. Désactivez-le si la dictée fige ou redémarre votre ordinateur."
|
||||
"speechGpuDescription": "Reconnaît la parole sur la carte graphique quand elle fonctionne, et sur le processeur en cas d’échec. Désactivez-le si la dictée fige ou redémarre votre ordinateur.",
|
||||
"updateToFasterVersion": "Passer à la version plus rapide ({{value0}} Mo)"
|
||||
},
|
||||
"WorktreeSymlinksSection": {
|
||||
"1c1e35b219": "Supprimer {{value0}}",
|
||||
@@ -16926,6 +16924,7 @@
|
||||
"noModel": "Aucun modèle vocal sélectionné. Téléchargez-en un dans Paramètres > Voix.",
|
||||
"disabled": "La dictée vocale est désactivée. Activez-la dans Paramètres > Voix.",
|
||||
"notReady": "Le modèle vocal n'est pas prêt. Téléchargez-le dans Paramètres > Voix.",
|
||||
"modelNeedsUpdate": "Votre modèle vocal doit être mis à jour pour continuer à fonctionner. Passez à la version plus rapide dans Paramètres > Voix.",
|
||||
"unknownModel": "Le modèle sélectionné n'est plus disponible. Choisissez-en un autre dans Paramètres > Voix.",
|
||||
"5d2c3e7ae3": "Aucune parole détectée.",
|
||||
"micFallback": "Micro sélectionné indisponible. Utilisation du micro par défaut du système.",
|
||||
|
||||
@@ -501,16 +501,13 @@
|
||||
"modelDescriptions": {
|
||||
"parakeetV3": "ヨーロッパの 25 言語で最高の精度。句読点、大文字・小文字、単語単位のタイムスタンプに対応。",
|
||||
"parakeetV2": "英語のみ。v3 と同程度の精度で、より高速。句読点と大文字・小文字に対応。",
|
||||
"zipformerBilingual": "中国語 + 英語の混在に対応。低遅延のリアルタイムストリーミング。",
|
||||
"paraformerBilingual": "中国語(標準中国語 + 方言)+ 英語。なまりや地域ごとの中国語に強い。",
|
||||
"zipformerStreamingEnRetired": "提供を終了しました。文の冒頭が抜け落ちます。削除して空き容量を確保してください。",
|
||||
"zipformerStreamingZh": "中国語のみ。1,400 万パラメーターの超軽量モデル。リソースの少ないデバイスに最適。",
|
||||
"zipformerStreamingKo": "韓国語のみ。低遅延のリアルタイムストリーミング。",
|
||||
"parakeetJa": "日本語のみ。3.5 万時間以上の自然な音声で学習。句読点に対応。",
|
||||
"whisperTiny": "90 以上の言語に対応。Parakeet より精度は低いものの、対応言語が最も豊富。",
|
||||
"senseVoice": "中国語、英語、日本語、韓国語、広東語に対応。言語を自動検出。",
|
||||
"gpt4oMiniTranscribe": "高精度で低コストのクラウド文字起こし。OpenAI API キーが必要です。",
|
||||
"gpt4oTranscribe": "より高精度なクラウド文字起こし。OpenAI API キーが必要です。"
|
||||
"gpt4oTranscribe": "より高精度なクラウド文字起こし。OpenAI API キーが必要です。",
|
||||
"retiredForEngine": "提供終了: 音声エンジンでこのモデルを実行できなくなりました。削除して空き容量を確保してください。",
|
||||
"nemotron": "韓国語、中国語、日本語など多数の言語に対応。言語を自動判別します。"
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
@@ -8815,7 +8812,8 @@
|
||||
"dictationShortcutDescription": "{{shortcut}} を押すと、フォーカスされているペインにテキストを音声入力できます。",
|
||||
"dictationModesDescription": "トグル: {{shortcut}} を1回押すと開始し、もう一度押すと停止します。ホールド: {{shortcut}} を押している間、音声入力します。",
|
||||
"speechGpuLabel": "GPU を使用",
|
||||
"speechGpuDescription": "動作する場合はグラフィックカードで音声を認識し、失敗した場合は CPU で認識します。音声入力でコンピュータがフリーズしたり再起動したりする場合はオフにしてください。"
|
||||
"speechGpuDescription": "動作する場合はグラフィックカードで音声を認識し、失敗した場合は CPU で認識します。音声入力でコンピュータがフリーズしたり再起動したりする場合はオフにしてください。",
|
||||
"updateToFasterVersion": "高速版に更新 ({{value0}} MB)"
|
||||
},
|
||||
"WorktreeSymlinksSection": {
|
||||
"1c1e35b219": "{{value0}} を削除",
|
||||
@@ -16298,6 +16296,7 @@
|
||||
"noModel": "音声モデルが選択されていません。設定 > 音声 からダウンロードしてください。",
|
||||
"disabled": "音声ディクテーションは無効です。設定 > 音声 で有効にしてください。",
|
||||
"notReady": "音声モデルの準備ができていません。設定 > 音声 からダウンロードしてください。",
|
||||
"modelNeedsUpdate": "音声モデルを引き続き使うには更新が必要です。設定 > 音声 で高速版に更新してください。",
|
||||
"unknownModel": "選択したモデルは使用できなくなりました。設定 > 音声 で別のモデルを選択してください。",
|
||||
"5d2c3e7ae3": "音声が検出されませんでした。",
|
||||
"micFallback": "選択したマイクが使用できません。システムのデフォルトを使用します。",
|
||||
|
||||
@@ -501,16 +501,13 @@
|
||||
"modelDescriptions": {
|
||||
"parakeetV3": "유럽 25개 언어에서 가장 높은 정확도. 문장 부호, 대소문자, 단어별 타임스탬프 지원.",
|
||||
"parakeetV2": "영어 전용. v3와 정확도는 비슷하며 속도는 더 빠릅니다. 문장 부호와 대소문자 지원.",
|
||||
"zipformerBilingual": "중국어 + 영어 혼용 지원. 지연 시간이 짧은 실시간 스트리밍.",
|
||||
"paraformerBilingual": "중국어(표준 중국어 + 방언) + 영어. 다양한 중국어 억양과 지역 방언에 강합니다.",
|
||||
"zipformerStreamingEnRetired": "더 이상 제공되지 않습니다. 문장 앞부분이 누락됩니다. 삭제하여 공간을 확보하세요.",
|
||||
"zipformerStreamingZh": "중국어 전용. 파라미터 1,400만 개의 초경량 모델로, 자원이 제한된 기기에 적합합니다.",
|
||||
"zipformerStreamingKo": "한국어 전용. 지연 시간이 짧은 실시간 스트리밍.",
|
||||
"parakeetJa": "일본어 전용. 3만 5천 시간 이상의 자연 발화로 학습했습니다. 문장 부호 지원.",
|
||||
"whisperTiny": "90개 이상 언어 지원. Parakeet보다 정확도는 낮지만 지원 언어가 가장 다양합니다.",
|
||||
"senseVoice": "중국어, 영어, 일본어, 한국어, 광둥어를 지원하며 언어를 자동으로 감지합니다.",
|
||||
"gpt4oMiniTranscribe": "정확도가 높고 비용이 저렴한 클라우드 전사. OpenAI API 키가 필요합니다.",
|
||||
"gpt4oTranscribe": "정확도가 더 높은 클라우드 전사. OpenAI API 키가 필요합니다."
|
||||
"gpt4oTranscribe": "정확도가 더 높은 클라우드 전사. OpenAI API 키가 필요합니다.",
|
||||
"retiredForEngine": "더 이상 제공되지 않음: 음성 엔진에서 더 이상 실행할 수 없습니다. 삭제하여 공간을 확보하세요.",
|
||||
"nemotron": "한국어, 중국어, 일본어 등 다양한 언어를 지원하며 언어를 자동으로 감지합니다."
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
@@ -8778,7 +8775,8 @@
|
||||
"dictationShortcutDescription": "{{shortcut}} 단축키를 눌러 포커스된 패널에 텍스트를 받아쓰세요.",
|
||||
"dictationModesDescription": "토글: {{shortcut}} 단축키를 한 번 누르면 받아쓰기를 시작하고, 다시 누르면 중지합니다. 길게 누르기: {{shortcut}} 단축키를 누르고 있는 동안 받아쓰기합니다.",
|
||||
"speechGpuLabel": "GPU 사용",
|
||||
"speechGpuDescription": "그래픽 카드가 작동하면 그래픽 카드에서, 실패하면 CPU에서 음성을 인식합니다. 받아쓰기 중 컴퓨터가 멈추거나 다시 시작되면 끄세요."
|
||||
"speechGpuDescription": "그래픽 카드가 작동하면 그래픽 카드에서, 실패하면 CPU에서 음성을 인식합니다. 받아쓰기 중 컴퓨터가 멈추거나 다시 시작되면 끄세요.",
|
||||
"updateToFasterVersion": "더 빠른 버전으로 업데이트 ({{value0}} MB)"
|
||||
},
|
||||
"WorktreeSymlinksSection": {
|
||||
"1c1e35b219": "{{value0}} 제거",
|
||||
@@ -16298,6 +16296,7 @@
|
||||
"noModel": "선택된 음성 모델이 없습니다. 설정 > 음성에서 다운로드하세요.",
|
||||
"disabled": "음성 받아쓰기가 비활성화되어 있습니다. 설정 > 음성에서 활성화하세요.",
|
||||
"notReady": "음성 모델이 준비되지 않았습니다. 설정 > 음성에서 다운로드하세요.",
|
||||
"modelNeedsUpdate": "음성 모델을 계속 사용하려면 업데이트가 필요합니다. 설정 > 음성에서 더 빠른 버전으로 업데이트하세요.",
|
||||
"unknownModel": "선택한 모델을 더 이상 사용할 수 없습니다. 설정 > 음성에서 다른 모델을 선택하세요.",
|
||||
"5d2c3e7ae3": "음성이 감지되지 않았습니다.",
|
||||
"micFallback": "선택한 마이크를 사용할 수 없습니다. 시스템 기본값을 사용합니다.",
|
||||
|
||||
@@ -1721,16 +1721,13 @@
|
||||
"modelDescriptions": {
|
||||
"parakeetV3": "Máxima precisão para 25 idiomas europeus. Pontuação, maiúsculas e minúsculas e marcas de tempo por palavra.",
|
||||
"parakeetV2": "Somente inglês. Mais rápido que v3 com precisão semelhante. Pontuação e maiúsculas e minúsculas.",
|
||||
"zipformerBilingual": "Chinês + inglês com alternância de idiomas. Streaming em tempo real com baixa latência.",
|
||||
"paraformerBilingual": "Chinês (mandarim + dialetos) + inglês. Bom desempenho com sotaques e variantes regionais do chinês.",
|
||||
"zipformerStreamingEnRetired": "Não é mais oferecido: ele perde o início das frases. Exclua-o para liberar espaço.",
|
||||
"zipformerStreamingZh": "Somente chinês. Modelo ultraleve de 14 milhões de parâmetros, ideal para dispositivos com poucos recursos.",
|
||||
"zipformerStreamingKo": "Somente coreano. Streaming em tempo real com baixa latência.",
|
||||
"parakeetJa": "Somente japonês. Treinado com mais de 35 mil horas de fala natural. Inclui pontuação.",
|
||||
"whisperTiny": "Mais de 90 idiomas. Menor precisão que Parakeet, mas com a maior cobertura de idiomas.",
|
||||
"senseVoice": "Chinês, inglês, japonês, coreano e cantonês com detecção automática de idioma.",
|
||||
"gpt4oMiniTranscribe": "Transcrição na nuvem com alta precisão e baixo custo. Exige uma chave de API da OpenAI.",
|
||||
"gpt4oTranscribe": "Transcrição na nuvem com maior precisão. Exige uma chave de API da OpenAI."
|
||||
"gpt4oTranscribe": "Transcrição na nuvem com maior precisão. Exige uma chave de API da OpenAI.",
|
||||
"retiredForEngine": "Não é mais oferecido: o mecanismo de fala não consegue mais executá-lo. Exclua-o para liberar espaço.",
|
||||
"nemotron": "Coreano, chinês, japonês e muitos outros idiomas, com detecção automática de idioma."
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
@@ -6506,7 +6503,8 @@
|
||||
"dictationShortcutDescription": "Pressione {{shortcut}} para ditar texto em qualquer painel com foco.",
|
||||
"dictationModesDescription": "Alternar: pressione {{shortcut}} uma vez para iniciar e novamente para parar. Manter pressionado: dite enquanto mantém {{shortcut}} pressionado.",
|
||||
"speechGpuLabel": "Usar GPU",
|
||||
"speechGpuDescription": "Reconhece a fala na placa de vídeo quando ela funciona e na CPU quando falha. Desative se o ditado travar ou reiniciar o computador."
|
||||
"speechGpuDescription": "Reconhece a fala na placa de vídeo quando ela funciona e na CPU quando falha. Desative se o ditado travar ou reiniciar o computador.",
|
||||
"updateToFasterVersion": "Atualizar para a versão mais rápida ({{value0}} MB)"
|
||||
},
|
||||
"NotificationsPane": {
|
||||
"906b4afebf": "Enviar Notificação de Teste",
|
||||
@@ -19259,6 +19257,7 @@
|
||||
"noModel": "Nenhum modelo de fala selecionado. Baixe um em Configurações > Voz.",
|
||||
"disabled": "O ditado por voz está desativado. Ative-o em Configurações > Voz.",
|
||||
"notReady": "O modelo de fala não está pronto. Baixe-o em Configurações > Voz.",
|
||||
"modelNeedsUpdate": "Seu modelo de voz precisa de uma atualização para continuar funcionando. Atualize para a versão mais rápida em Configurações > Voz.",
|
||||
"unknownModel": "O modelo selecionado não está mais disponível. Escolha outro em Configurações > Voz.",
|
||||
"5d2c3e7ae3": "Nenhuma fala detectada.",
|
||||
"micFallback": "O microfone selecionado não está disponível. Usando o padrão do sistema.",
|
||||
|
||||
@@ -1000,16 +1000,13 @@
|
||||
"modelDescriptions": {
|
||||
"parakeetV3": "Наивысшая точность для 25 европейских языков. Пунктуация, регистр букв и временные метки для каждого слова.",
|
||||
"parakeetV2": "Только английский. Быстрее v3 при схожей точности. Пунктуация и регистр букв.",
|
||||
"zipformerBilingual": "Китайский + английский с переключением языков. Потоковая обработка в реальном времени с низкой задержкой.",
|
||||
"paraformerBilingual": "Китайский (путунхуа + диалекты) + английский. Хорошо распознаёт китайскую речь с акцентами и региональными особенностями.",
|
||||
"zipformerStreamingEnRetired": "Больше не предлагается: теряет начало фраз. Удалите модель, чтобы освободить место.",
|
||||
"zipformerStreamingZh": "Только китайский. Сверхлёгкая модель с 14 млн параметров, идеальна для устройств с ограниченными ресурсами.",
|
||||
"zipformerStreamingKo": "Только корейский. Потоковая обработка в реальном времени с низкой задержкой.",
|
||||
"parakeetJa": "Только японский. Обучена на более чем 35 тыс. часов естественной речи. Поддерживает пунктуацию.",
|
||||
"whisperTiny": "Более 90 языков. Точность ниже, чем у Parakeet, но самый широкий охват языков.",
|
||||
"senseVoice": "Китайский, английский, японский, корейский и кантонский с автоматическим определением языка.",
|
||||
"gpt4oMiniTranscribe": "Облачная расшифровка с высокой точностью и низкой стоимостью. Требуется API-ключ OpenAI.",
|
||||
"gpt4oTranscribe": "Облачная расшифровка с более высокой точностью. Требуется API-ключ OpenAI."
|
||||
"gpt4oTranscribe": "Облачная расшифровка с более высокой точностью. Требуется API-ключ OpenAI.",
|
||||
"retiredForEngine": "Больше не предлагается: движок распознавания речи больше не может её запускать. Удалите её, чтобы освободить место.",
|
||||
"nemotron": "Корейский, китайский, японский и многие другие языки, с автоматическим определением языка."
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
@@ -9828,7 +9825,8 @@
|
||||
"dictationShortcutDescription": "Нажмите {{shortcut}}, чтобы диктовать текст в любую активную панель.",
|
||||
"dictationModesDescription": "Переключение: нажмите {{shortcut}} для начала и ещё раз для остановки. Удержание: диктуйте, пока удерживаете {{shortcut}}.",
|
||||
"speechGpuLabel": "Использовать GPU",
|
||||
"speechGpuDescription": "Распознавать речь на видеокарте, если она работает, и на процессоре, если нет. Отключите, если диктовка зависает или перезагружает компьютер."
|
||||
"speechGpuDescription": "Распознавать речь на видеокарте, если она работает, и на процессоре, если нет. Отключите, если диктовка зависает или перезагружает компьютер.",
|
||||
"updateToFasterVersion": "Обновить до более быстрой версии ({{value0}} МБ)"
|
||||
},
|
||||
"WorktreeSymlinksSection": {
|
||||
"1c1e35b219": "Удалить {{value0}}",
|
||||
@@ -17472,6 +17470,7 @@
|
||||
"noModel": "Модель распознавания речи не выбрана. Скачайте её в разделе «Настройки > Голос».",
|
||||
"disabled": "Голосовая диктовка отключена. Включите её в разделе «Настройки > Голос».",
|
||||
"notReady": "Модель распознавания речи не готова. Скачайте её в разделе «Настройки > Голос».",
|
||||
"modelNeedsUpdate": "Голосовой модели нужно обновление, чтобы она продолжала работать. Обновите её до более быстрой версии в разделе «Настройки > Голос».",
|
||||
"unknownModel": "Выбранная модель больше недоступна. Выберите другую в разделе «Настройки > Голос».",
|
||||
"5d2c3e7ae3": "Речь не обнаружена.",
|
||||
"micFallback": "Выбранный микрофон недоступен. Используется системный микрофон по умолчанию.",
|
||||
|
||||
@@ -934,16 +934,13 @@
|
||||
"modelDescriptions": {
|
||||
"parakeetV3": "25 Avrupa dili için en yüksek doğruluk. Noktalama, büyük/küçük harf kullanımı ve sözcük düzeyinde zaman damgaları.",
|
||||
"parakeetV2": "Yalnızca İngilizce. Benzer doğrulukla v3'ten daha hızlı. Noktalama ve büyük/küçük harf kullanımı.",
|
||||
"zipformerBilingual": "Dil geçişleriyle Çince + İngilizce. Düşük gecikmeli gerçek zamanlı akış.",
|
||||
"paraformerBilingual": "Çince (Mandarin + lehçeler) + İngilizce. Aksanlı ve bölgesel Çince konuşmalarda güçlü.",
|
||||
"zipformerStreamingEnRetired": "Artık sunulmuyor: cümlelerin başını atlıyor. Yer açmak için silin.",
|
||||
"zipformerStreamingZh": "Yalnızca Çince. Kaynakları kısıtlı cihazlar için ideal, 14 milyon parametreli çok hafif model.",
|
||||
"zipformerStreamingKo": "Yalnızca Korece. Düşük gecikmeli gerçek zamanlı akış.",
|
||||
"parakeetJa": "Yalnızca Japonca. 35 bini aşkın saatlik doğal konuşmayla eğitildi. Noktalama dâhil.",
|
||||
"whisperTiny": "90'dan fazla dil. Parakeet'ten daha düşük doğruluk, ancak en geniş dil kapsamı.",
|
||||
"senseVoice": "Otomatik dil algılamayla Çince, İngilizce, Japonca, Korece ve Kantonca.",
|
||||
"gpt4oMiniTranscribe": "Yüksek doğruluk ve düşük maliyetle bulut transkripsiyonu. OpenAI API anahtarı gerektirir.",
|
||||
"gpt4oTranscribe": "Daha yüksek doğrulukla bulut transkripsiyonu. OpenAI API anahtarı gerektirir."
|
||||
"gpt4oTranscribe": "Daha yüksek doğrulukla bulut transkripsiyonu. OpenAI API anahtarı gerektirir.",
|
||||
"retiredForEngine": "Artık sunulmuyor: konuşma motoru bu modeli artık çalıştıramıyor. Yer açmak için silin.",
|
||||
"nemotron": "Korece, Çince, Japonca ve daha birçok dil; dil otomatik algılanır."
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
@@ -9458,7 +9455,8 @@
|
||||
"dictationShortcutDescription": "Odaktaki herhangi bir bölmeye metin dikte etmek için {{shortcut}} tuşlarına basın.",
|
||||
"dictationModesDescription": "Aç/kapat: başlatmak için {{shortcut}} tuşlarına bir kez, durdurmak için tekrar basın. Basılı tut: {{shortcut}} basılıyken dikte edin.",
|
||||
"speechGpuLabel": "GPU kullan",
|
||||
"speechGpuDescription": "Konuşmayı çalıştığında ekran kartında, başarısız olduğunda CPU’da tanır. Dikte bilgisayarınızı donduruyor veya yeniden başlatıyorsa kapatın."
|
||||
"speechGpuDescription": "Konuşmayı çalıştığında ekran kartında, başarısız olduğunda CPU’da tanır. Dikte bilgisayarınızı donduruyor veya yeniden başlatıyorsa kapatın.",
|
||||
"updateToFasterVersion": "Daha hızlı sürüme güncelle ({{value0}} MB)"
|
||||
},
|
||||
"WorktreeSymlinksSection": {
|
||||
"1c1e35b219": "{{value0}} kaldırılsın mı",
|
||||
@@ -16958,6 +16956,7 @@
|
||||
"noModel": "Konuşma modeli seçilmedi. Ayarlar > Ses bölümünden bir model indirin.",
|
||||
"disabled": "Sesli dikte devre dışı. Ayarlar > Ses bölümünden etkinleştirin.",
|
||||
"notReady": "Konuşma modeli hazır değil. Ayarlar > Ses bölümünden indirin.",
|
||||
"modelNeedsUpdate": "Konuşma modelinizin çalışmaya devam etmesi için güncellenmesi gerekiyor. Ayarlar > Ses bölümünden daha hızlı sürüme güncelleyin.",
|
||||
"unknownModel": "Seçili model artık kullanılamıyor. Ayarlar > Ses bölümünden başka bir model seçin.",
|
||||
"5d2c3e7ae3": "Konuşma algılanmadı.",
|
||||
"micFallback": "Seçili mikrofon kullanılamıyor. Sistem varsayılanı kullanılıyor.",
|
||||
|
||||
@@ -907,16 +907,13 @@
|
||||
"modelDescriptions": {
|
||||
"parakeetV3": "為 25 種歐洲語言提供最高準確度。支援標點符號、大小寫及詞級時間戳記。",
|
||||
"parakeetV2": "僅限英文。準確度與 v3 相近,速度更快。支援標點符號及大小寫。",
|
||||
"zipformerBilingual": "中文 + 英文,支援語言混用。低延遲即時串流。",
|
||||
"paraformerBilingual": "中文(國語 + 方言)+ 英文。擅長辨識各地口音與方言。",
|
||||
"zipformerStreamingEnRetired": "已不再提供:它會遺漏句子開頭。刪除它以釋放空間。",
|
||||
"zipformerStreamingZh": "僅限中文。1,400 萬個參數的超輕量模型,適合資源有限的裝置。",
|
||||
"zipformerStreamingKo": "僅限韓文。低延遲即時串流。",
|
||||
"parakeetJa": "僅限日文。使用超過 3.5 萬小時的自然語音訓練。支援標點符號。",
|
||||
"whisperTiny": "支援 90 多種語言。準確度低於 Parakeet,但語言涵蓋範圍最廣。",
|
||||
"senseVoice": "支援中文、英文、日文、韓文及粵語,並自動偵測語言。",
|
||||
"gpt4oMiniTranscribe": "準確度高、成本低的雲端轉錄。需要 OpenAI API 金鑰。",
|
||||
"gpt4oTranscribe": "準確度更高的雲端轉錄。需要 OpenAI API 金鑰。"
|
||||
"gpt4oTranscribe": "準確度更高的雲端轉錄。需要 OpenAI API 金鑰。",
|
||||
"retiredForEngine": "已不再提供:語音引擎已無法執行此模型。刪除它以釋放空間。",
|
||||
"nemotron": "支援韓語、中文、日語等多種語言,可自動辨識語言。"
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
@@ -9295,7 +9292,8 @@
|
||||
"dictationShortcutDescription": "按 {{shortcut}} 可將文字聽寫到目前取得焦點的任意窗格中。",
|
||||
"dictationModesDescription": "切換:按一次 {{shortcut}} 開始,再按一次停止。按住:按住 {{shortcut}} 期間進行聽寫。",
|
||||
"speechGpuLabel": "使用 GPU",
|
||||
"speechGpuDescription": "顯示卡可用時在顯示卡上辨識語音,失敗時改用 CPU。如果聽寫導致電腦當機或重新啟動,請關閉。"
|
||||
"speechGpuDescription": "顯示卡可用時在顯示卡上辨識語音,失敗時改用 CPU。如果聽寫導致電腦當機或重新啟動,請關閉。",
|
||||
"updateToFasterVersion": "更新到更快的版本({{value0}} MB)"
|
||||
},
|
||||
"WorktreeSymlinksSection": {
|
||||
"1c1e35b219": "刪除 {{value0}}",
|
||||
@@ -16747,6 +16745,7 @@
|
||||
"noModel": "未選擇語音模型。請在「設定 > 語音」中下載一個。",
|
||||
"disabled": "語音聽寫已停用。請在「設定 > 語音」中啟用。",
|
||||
"notReady": "語音模型尚未就緒。請在「設定 > 語音」中下載。",
|
||||
"modelNeedsUpdate": "你的語音模型需要更新才能繼續使用。請在「設定 > 語音」中更新到更快的版本。",
|
||||
"unknownModel": "所選模型已無法使用。請在「設定 > 語音」中選擇其他模型。",
|
||||
"5d2c3e7ae3": "未偵測到語音。",
|
||||
"micFallback": "所選麥克風不可用。使用系統預設值。",
|
||||
|
||||
@@ -501,16 +501,13 @@
|
||||
"modelDescriptions": {
|
||||
"parakeetV3": "为 25 种欧洲语言提供最高准确度。支持标点、大小写和词级时间戳。",
|
||||
"parakeetV2": "仅限英语。准确度与 v3 相近,速度更快。支持标点和大小写。",
|
||||
"zipformerBilingual": "中文 + 英文,支持语言混用。低延迟实时流式处理。",
|
||||
"paraformerBilingual": "中文(普通话 + 方言)+ 英文。擅长识别各地口音和方言。",
|
||||
"zipformerStreamingEnRetired": "已不再提供:它会丢失句子开头。删除它以释放空间。",
|
||||
"zipformerStreamingZh": "仅限中文。1400 万参数的超轻量模型,适合资源有限的设备。",
|
||||
"zipformerStreamingKo": "仅限韩语。低延迟实时流式处理。",
|
||||
"parakeetJa": "仅限日语。使用超过 3.5 万小时的自然语音训练。支持标点。",
|
||||
"whisperTiny": "支持 90 多种语言。准确度低于 Parakeet,但语言覆盖最广。",
|
||||
"senseVoice": "支持中文、英语、日语、韩语和粤语,并自动检测语言。",
|
||||
"gpt4oMiniTranscribe": "准确度高、成本低的云端转录。需要 OpenAI API 密钥。",
|
||||
"gpt4oTranscribe": "准确度更高的云端转录。需要 OpenAI API 密钥。"
|
||||
"gpt4oTranscribe": "准确度更高的云端转录。需要 OpenAI API 密钥。",
|
||||
"retiredForEngine": "已不再提供:语音引擎已无法运行此模型。删除它以释放空间。",
|
||||
"nemotron": "支持韩语、中文、日语等多种语言,可自动识别语言。"
|
||||
}
|
||||
},
|
||||
"diagnostics": {
|
||||
@@ -8778,7 +8775,8 @@
|
||||
"dictationShortcutDescription": "按 {{shortcut}} 可将文本听写到当前聚焦的任意窗格中。",
|
||||
"dictationModesDescription": "切换:按一次 {{shortcut}} 开始,再按一次停止。按住:按住 {{shortcut}} 期间进行听写。",
|
||||
"speechGpuLabel": "使用 GPU",
|
||||
"speechGpuDescription": "显卡可用时在显卡上识别语音,失败时改用 CPU。如果听写导致电脑卡死或重启,请关闭。"
|
||||
"speechGpuDescription": "显卡可用时在显卡上识别语音,失败时改用 CPU。如果听写导致电脑卡死或重启,请关闭。",
|
||||
"updateToFasterVersion": "更新到更快的版本({{value0}} MB)"
|
||||
},
|
||||
"WorktreeSymlinksSection": {
|
||||
"1c1e35b219": "删除 {{value0}}",
|
||||
@@ -16298,6 +16296,7 @@
|
||||
"noModel": "未选择语音模型。请在“设置 > 语音”中下载一个。",
|
||||
"disabled": "语音听写已禁用。请在“设置 > 语音”中启用。",
|
||||
"notReady": "语音模型尚未就绪。请在“设置 > 语音”中下载。",
|
||||
"modelNeedsUpdate": "你的语音模型需要更新才能继续使用。请在“设置 > 语音”中更新到更快的版本。",
|
||||
"unknownModel": "所选模型已不可用。请在“设置 > 语音”中选择其他模型。",
|
||||
"5d2c3e7ae3": "未检测到语音。",
|
||||
"micFallback": "所选麦克风不可用。使用系统默认值。",
|
||||
|
||||
@@ -10,6 +10,10 @@ export const DICTATION_LANGUAGES: readonly string[] = DICTATION_LANGUAGE_CODES.s
|
||||
// SenseVoice refuses to load with any other code.
|
||||
export const SENSE_VOICE_DICTATION_LANGUAGES: readonly string[] = ['en', 'ja', 'ko', 'yue', 'zh']
|
||||
|
||||
// Nemotron 3.5's locales (ko-KR, zh-CN, ...) by ISO-639-1 language; the recognizer sends the first matching locale.
|
||||
export const NEMOTRON_DICTATION_LANGUAGES: readonly string[] =
|
||||
'ar bg cs da de en es et fi fr hi hr hu it ja ko nl pl pt ro ru sk sv tr uk vi zh'.split(' ')
|
||||
|
||||
/** The code to send the engine, or undefined to let it detect the language itself. */
|
||||
export function engineDictationLanguage(
|
||||
model: Pick<SpeechModelManifest, 'dictationLanguages'>,
|
||||
|
||||
@@ -1,4 +1,13 @@
|
||||
import type { SpeechModelManifest } from './speech-types'
|
||||
import type { SpeechModelManifest, SpeechModelState } from './speech-types'
|
||||
|
||||
/** A model whose only download is the old sherpa-onnx one. Phones treat every voice_model_not_ready: code as setup. */
|
||||
export const SPEECH_MODEL_NEEDS_UPDATE_ERROR = 'voice_model_not_ready:needs-update'
|
||||
|
||||
export function speechModelNotReadyError(state: SpeechModelState): string {
|
||||
return state.needsUpdate
|
||||
? SPEECH_MODEL_NEEDS_UPDATE_ERROR
|
||||
: `voice_model_not_ready:${state.status}`
|
||||
}
|
||||
|
||||
export function isOfferedSpeechModel(manifest: SpeechModelManifest): boolean {
|
||||
return manifest.replacedBy === undefined
|
||||
|
||||
@@ -14,7 +14,7 @@ export function speechRecognizerPackageName(platform: string, arch: string): str
|
||||
: `sherpa-onnx-${platform}-${arch}`
|
||||
}
|
||||
|
||||
// Intel Macs stay on sherpa: transcribe-cpp's darwin-x64 build is SSE-only with no GPU. Packaging reads the same table.
|
||||
// Packaging reads the same table. Intel Macs run transcribe-cpp on the CPU (its x64 build has no GPU backend).
|
||||
const TRANSCRIBE_CPP_PACKAGES: Record<string, string> = transcribeCppPackages
|
||||
|
||||
/** Whether `nodeModulesDir` holds a loadable copy of `engine` for this host. */
|
||||
|
||||
@@ -26,6 +26,8 @@ export type SpeechModelManifest = {
|
||||
sizeBytes?: number
|
||||
downloadFiles?: SpeechModelDownloadFile[]
|
||||
files?: string[]
|
||||
/** The sherpa-onnx files an earlier Orca downloaded for this model; they no longer run. */
|
||||
legacyDownloadFiles?: SpeechModelDownloadFile[]
|
||||
sampleRate: number
|
||||
streaming: boolean
|
||||
modelingUnit?: ModelingUnit
|
||||
@@ -43,6 +45,8 @@ export type SpeechModelState = {
|
||||
status: SpeechModelStatus
|
||||
progress?: number
|
||||
error?: string
|
||||
/** Only the legacy sherpa-onnx files are on disk: downloading replaces them with the current ones. */
|
||||
needsUpdate?: true
|
||||
}
|
||||
|
||||
export type SpeechTranscriptEvent = {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"darwin-arm64": "@transcribe-cpp/darwin-arm64-metal",
|
||||
"darwin-x64": "@transcribe-cpp/darwin-x64-cpu",
|
||||
"linux-x64": "@transcribe-cpp/linux-x64-cpu-vulkan",
|
||||
"linux-arm64": "@transcribe-cpp/linux-arm64-cpu-vulkan",
|
||||
"win32-x64": "@transcribe-cpp/win32-x64-cpu-vulkan"
|
||||
|
||||
Reference in New Issue
Block a user