Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FunAudioLLM/Fun-Audio-Chat
/ asSamples
Function
asSamples
web_demo/client/src/audio-processor.ts:16–18 ·
view source on GitHub ↗
(mili)
Source
from the content-addressed store, hash-verified
14
}
15
16
function
asSamples(mili) {
17
return
Math.round(mili * sampleRate / 1000);
18
}
19
20
class
MoshiProcessor extends AudioWorkletProcessor {
21
constructor() {
Callers
1
constructor
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected