()
| 192 | //audio_record.play(); //not auto play |
| 193 | } |
| 194 | function start_file_send() |
| 195 | { |
| 196 | sampleBuf=new Uint8Array( file_data_array ); |
| 197 | |
| 198 | var chunk_size=960; // for asr chunk_size [5, 10, 5] |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | |
| 204 | while(sampleBuf.length>=chunk_size){ |
| 205 | |
| 206 | sendBuf=sampleBuf.slice(0,chunk_size); |
| 207 | totalsend=totalsend+sampleBuf.length; |
| 208 | sampleBuf=sampleBuf.slice(chunk_size,sampleBuf.length); |
| 209 | wsconnecter.wsSend(sendBuf); |
| 210 | |
| 211 | |
| 212 | } |
| 213 | |
| 214 | stop(); |
| 215 | |
| 216 | |
| 217 | |
| 218 | } |
| 219 | |
| 220 | |
| 221 | function on_recoder_mode_change() |
no test coverage detected
searching dependent graphs…