Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SliverKeigo/MossVoice
/ functions
Functions
206 in github.com/SliverKeigo/MossVoice
⨍
Functions
206
◇
Types & classes
49
↓ 18 callers
Function
send
(message: WorkerToClient)
lib/tts/worker.ts:30
↓ 16 callers
Function
asTensor
* ORT's `OnnxValueMapType` returns `OnnxValue = Tensor | NonTensorType`. For * the MOSS-TTS-Nano graphs every output we read is a tensor; this helper
lib/tts/runtime.ts:268
↓ 14 callers
Function
gotoWorkspace
(page: Page)
tests/e2e/_helpers.ts:24
↓ 11 callers
Function
readBuffer
( repo: ModelRepo, file: string )
lib/tts/model-store.ts:116
↓ 10 callers
Function
dismissOnboarding
(page: Page)
tests/e2e/_helpers.ts:53
↓ 8 callers
Function
clearEditor
* NOTE: the character-counter row renders as four sibling <span>s * (count, "/ N", "·", "~Ns"), so cross-span regex matching is * unreliable. Tests
tests/e2e/02-editor.spec.ts:11
↓ 7 callers
Function
blockOpfs
(page: Page)
tests/e2e/_helpers.ts:14
↓ 7 callers
Function
gen
(key: string)
components/Controls.tsx:40
↓ 7 callers
Function
shadowOf
(loc: typeof junhao)
tests/e2e/03-voices-controls.spec.ts:40
↓ 6 callers
Method
countTokens
(text: string)
lib/tts/runtime.ts:1263
↓ 5 callers
Method
emit
(event: E, value: ClientEvents[E])
lib/tts/client.ts:153
↓ 5 callers
Function
getDir
(create: boolean)
lib/tts/cloned_voices.ts:48
↓ 5 callers
Function
getTtsClient
()
lib/tts/client.ts:264
↓ 5 callers
Function
multiplyShape
(shape: number[])
lib/tts/runtime.ts:259
↓ 5 callers
Method
on
(event: E, listener: Listener<E>)
lib/tts/client.ts:146
↓ 4 callers
Function
getFileHandle
( repo: ModelRepo, file: string, create: boolean )
lib/tts/model-store.ts:78
↓ 4 callers
Function
notify
()
lib/tts/cloned_voices.ts:33
↓ 4 callers
Method
pause
()
lib/tts/audio_stream_player.ts:227
↓ 4 callers
Function
readCounterColor
( page: import("@playwright/test").Page )
tests/e2e/02-editor.spec.ts:19
↓ 4 callers
Method
send
(message: ClientToWorker)
lib/tts/client.ts:142
↓ 4 callers
Function
toErrorPayload
(err: unknown)
lib/tts/worker.ts:51
↓ 4 callers
Function
writeString
(offset: number, s: string)
lib/tts/wav.ts:21
↓ 3 callers
Function
findVoice
(id: string)
lib/tts/voiceCatalog.ts:156
↓ 3 callers
Function
isClonedVoiceFile
(value: unknown)
lib/tts/cloned_voices.ts:66
↓ 3 callers
Function
readText
( repo: ModelRepo, file: string )
lib/tts/model-store.ts:129
↓ 3 callers
Method
reset
Stop everything and release sources. Safe to call multiple times.
lib/tts/audio_stream_player.ts:240
↓ 2 callers
Function
asFeeds
* The reusable decode feeds map contains nulls until prefill populates the * KV cache; after that point every entry is a tensor. ORT's `FeedsType` *
lib/tts/runtime.ts:280
↓ 2 callers
Function
buildTextRows
(tokenIds: number[], config: TtsConfig)
lib/tts/runtime.ts:314
↓ 2 callers
Function
drawClampedRandomU
()
lib/tts/runtime.ts:255
↓ 2 callers
Method
encodeReferenceAudio
* Encode a decoded `AudioBuffer` (from `AudioContext.decodeAudioData` * on a user-uploaded file) into the `prompt_audio_codes` shape the * model
lib/tts/client.ts:202
↓ 2 callers
Method
ensureWorker
()
lib/tts/client.ts:64
↓ 2 callers
Function
extractLastHiddenTensor
( ort: typeof Ort, hiddenStatesTensor: Ort.Tensor )
lib/tts/runtime.ts:286
↓ 2 callers
Method
feedDecodePast
( outputs: Ort.InferenceSession.OnnxValueMapType )
lib/tts/runtime.ts:670
↓ 2 callers
Function
fileExistsWithSize
( repo: ModelRepo, asset: ModelAsset )
lib/tts/model-store.ts:93
↓ 2 callers
Method
fireEnded
()
lib/tts/audio_stream_player.ts:202
↓ 2 callers
Function
flatten3dInt32
(rows: number[][][])
lib/tts/runtime.ts:204
↓ 2 callers
Function
formatBytes
(n: number)
components/Onboarding.tsx:13
↓ 2 callers
Function
formatBytes
* Compact storage manager. Surfaces: * * - Total OPFS bytes the origin is using, via navigator.storage.estimate * - Count of currently saved cl
components/StoragePanel.tsx:29
↓ 2 callers
Function
getRootHandle
()
lib/tts/model-store.ts:46
↓ 2 callers
Method
hardSplitByChars
* Last-resort split for a single long run with no punctuation. * Estimates chars-per-token from the tokenizer's own output and * slices accordin
lib/tts/runtime.ts:1249
↓ 2 callers
Function
isFullyCached
()
lib/tts/model-store.ts:105
↓ 2 callers
Function
listClonedVoices
()
lib/tts/cloned_voices.ts:85
↓ 2 callers
Function
mmss
(t: number)
components/Player.tsx:123
↓ 2 callers
Function
onClonedVoicesChanged
(listener: () => void)
lib/tts/cloned_voices.ts:43
↓ 2 callers
Method
prepare
()
lib/tts/runtime.ts:416
↓ 2 callers
Method
scheduleBuffer
(buffer: AudioBuffer)
lib/tts/audio_stream_player.ts:178
↓ 2 callers
Method
startPlayback
()
lib/tts/audio_stream_player.ts:165
↓ 2 callers
Method
stopPositionTimer
()
lib/tts/audio_stream_player.ts:279
↓ 2 callers
Method
synthesizeOneTextChunk
* Synthesize one slice of pre-chunked text. The orchestration in * `synthesizeStream` resolves the voice, splits the text, and * threads a globa
lib/tts/runtime.ts:1087
↓ 2 callers
Method
synthesizeStream
* Streaming TTS. Calls `onChunk` repeatedly as audio is decoded so * the UI can start playback before generation finishes. The codec * step grap
lib/tts/runtime.ts:960
↓ 2 callers
Function
voiceSwatch
* Deterministic per-voice swatch color from a hash of the voice id. * Keeps the picker visually varied without inventing tone-color claims.
components/Voices.tsx:23
↓ 1 callers
Function
applyTheme
(id: ThemeId)
lib/theme.ts:91
↓ 1 callers
Function
buildAudioPrefixRows
( promptAudioCodes: number[][], config: TtsConfig )
lib/tts/runtime.ts:323
↓ 1 callers
Function
buildNoFlashScript
()
lib/theme.ts:102
↓ 1 callers
Function
buildVoiceCloneRequestRows
({ manifest, promptAudioCodes, textTokenIds, }: { manifest: BrowserPocManifest; promptAudioCodes: nu
lib/tts/runtime.ts:339
↓ 1 callers
Function
bytesToBase64
(bytes: Uint8Array)
lib/tts/runtime.ts:193
↓ 1 callers
Function
cancel
()
components/Voices.tsx:298
↓ 1 callers
Method
cancelLoad
()
lib/tts/client.ts:171
↓ 1 callers
Function
clearAllClonedVoices
()
lib/tts/cloned_voices.ts:199
↓ 1 callers
Function
clearCache
()
lib/tts/model-store.ts:349
↓ 1 callers
Function
commit
()
components/Voices.tsx:288
↓ 1 callers
Function
deleteClonedVoice
(id: string)
lib/tts/cloned_voices.ts:178
↓ 1 callers
Method
dispose
()
lib/tts/client.ts:230
↓ 1 callers
Function
downloadOne
( repo: ModelRepo, asset: ModelAsset, index: number, fileCount: number, totalLoadedSoFar: { value: n
lib/tts/model-store.ts:145
↓ 1 callers
Function
encodeWav
( channelData: Float32Array[], sampleRate: number )
lib/tts/wav.ts:7
↓ 1 callers
Method
enqueueChunk
Append the next streaming chunk. Starts playback once prebuffered.
lib/tts/audio_stream_player.ts:97
↓ 1 callers
Function
ensureCached
( options: EnsureCachedOptions = {} )
lib/tts/model-store.ts:259
↓ 1 callers
Method
ensureContext
Lazily construct the AudioContext on first user gesture / chunk.
lib/tts/audio_stream_player.ts:74
↓ 1 callers
Method
finalize
* Signal that no more chunks will be enqueued. Flushes any prebuffer * even if it never hit the threshold, then wires `onEnded` to the * last sc
lib/tts/audio_stream_player.ts:145
↓ 1 callers
Function
flatten2dInt32
(rows: number[][])
lib/tts/runtime.ts:223
↓ 1 callers
Function
formatEta
(seconds: number)
components/TopProgressBar.tsx:64
↓ 1 callers
Function
genderOf
(group: string)
lib/tts/voiceCatalog.ts:114
↓ 1 callers
Method
generateAudioFramesStream
* Drive the autoregressive frame generator. Calls `onFrame` for every * generated frame (one per outer step) so callers can stream them * into t
lib/tts/runtime.ts:769
↓ 1 callers
Function
generateId
()
lib/tts/cloned_voices.ts:60
↓ 1 callers
Function
getOrt
()
lib/tts/runtime.ts:47
↓ 1 callers
Function
getRepoHandle
( repo: ModelRepo, create: boolean )
lib/tts/model-store.ts:65
↓ 1 callers
Function
getStoredLocale
()
lib/i18n/locales.ts:56
↓ 1 callers
Function
getStoredTheme
()
lib/theme.ts:71
↓ 1 callers
Function
handleEncodeReference
(request: { id: string; pcm: Float32Array[]; sampleRate: number; })
lib/tts/worker.ts:262
↓ 1 callers
Function
handleLoad
(force: boolean)
lib/tts/worker.ts:78
↓ 1 callers
Method
handleMessage
(msg: WorkerToClient)
lib/tts/client.ts:84
↓ 1 callers
Function
handleSynthesize
(request: { id: string; text: string; voiceId: string; promptAudioCodes?: number[][]; sampleMode?: "
lib/tts/worker.ts:145
↓ 1 callers
Function
hfResolveUrl
(repoId: string, file: string)
lib/tts/manifest.ts:100
↓ 1 callers
Method
initReusableBuffers
()
lib/tts/runtime.ts:551
↓ 1 callers
Function
isClonedVoiceId
(id: string)
lib/tts/cloned_voices.ts:190
↓ 1 callers
Function
isLocaleId
(value: string | null)
lib/i18n/locales.ts:52
↓ 1 callers
Function
isThemeId
(value: string | null)
lib/theme.ts:62
↓ 1 callers
Function
languageOf
(group: string)
lib/tts/voiceCatalog.ts:107
↓ 1 callers
Method
loadMetadata
()
lib/tts/runtime.ts:405
↓ 1 callers
Method
loadModel
(opts: { force?: boolean } = {})
lib/tts/client.ts:167
↓ 1 callers
Method
loadSessions
()
lib/tts/runtime.ts:435
↓ 1 callers
Method
loadTokenizer
()
lib/tts/runtime.ts:427
↓ 1 callers
Method
newStreamingCodecState
* Build a fresh streaming state for the codec decoder. The codec * step graph keeps four transformer offsets + twelve attention KV * caches acro
lib/tts/runtime.ts:835
↓ 1 callers
Function
parseGoogleVerification
( raw: string | undefined )
lib/seo/site.ts:54
↓ 1 callers
Function
pick
(id: ThemeId)
components/ThemeSwitcher.tsx:67
↓ 1 callers
Function
pickRecorderMime
()
components/CloneVoiceSheet.tsx:40
↓ 1 callers
Function
refresh
()
components/Workspace.tsx:87
↓ 1 callers
Function
renameClonedVoice
( id: string, name: string )
lib/tts/cloned_voices.ts:149
↓ 1 callers
Function
resampleToCodecFormat
* Re-render an AudioBuffer through OfflineAudioContext targeting the * codec's 48 kHz / stereo expectation. Mono in → duplicated to stereo; * 1+ cha
lib/tts/client.ts:244
↓ 1 callers
Method
resolveVoice
(voiceId: string)
lib/tts/runtime.ts:607
next →
1–100 of 206, ranked by callers