Upload index.html with huggingface_hub
Browse files- index.html +0 -1
index.html
CHANGED
|
@@ -111,7 +111,6 @@ html,body{background:#161719;overflow:hidden}
|
|
| 111 |
function playChunk(b64){
|
| 112 |
const bin=atob(b64),by=new Uint8Array(bin.length); for(let i=0;i<bin.length;i++)by[i]=bin.charCodeAt(i);
|
| 113 |
const i16=new Int16Array(by.buffer),n=i16.length>>1; if(n<1)return;
|
| 114 |
-
if(ctx&&nextTime>ctx.currentTime+0.6)return; // queue too deep -> drop chunk, cap latency
|
| 115 |
const buf=ctx.createBuffer(2,n,SR),L=buf.getChannelData(0),R=buf.getChannelData(1);
|
| 116 |
for(let i=0;i<n;i++){L[i]=i16[2*i]/32768;R[i]=i16[2*i+1]/32768;}
|
| 117 |
const s=ctx.createBufferSource(); s.buffer=buf; s.connect(analyser);
|
|
|
|
| 111 |
function playChunk(b64){
|
| 112 |
const bin=atob(b64),by=new Uint8Array(bin.length); for(let i=0;i<bin.length;i++)by[i]=bin.charCodeAt(i);
|
| 113 |
const i16=new Int16Array(by.buffer),n=i16.length>>1; if(n<1)return;
|
|
|
|
| 114 |
const buf=ctx.createBuffer(2,n,SR),L=buf.getChannelData(0),R=buf.getChannelData(1);
|
| 115 |
for(let i=0;i<n;i++){L[i]=i16[2*i]/32768;R[i]=i16[2*i+1]/32768;}
|
| 116 |
const s=ctx.createBufferSource(); s.buffer=buf; s.connect(analyser);
|