feat: support assistant frontend (#2139)
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
This commit is contained in:
parent
e65a2a400d
commit
7bbe12b2bd
194 changed files with 8726 additions and 1586 deletions
|
|
@ -1,4 +1,11 @@
|
|||
import lamejs from 'lamejs'
|
||||
import MPEGMode from 'lamejs/src/js/MPEGMode'
|
||||
import Lame from 'lamejs/src/js/Lame'
|
||||
import BitStream from 'lamejs/src/js/BitStream'
|
||||
|
||||
(window as any).MPEGMode = MPEGMode
|
||||
;(window as any).Lame = Lame
|
||||
;(window as any).BitStream = BitStream
|
||||
|
||||
export const convertToMp3 = (recorder: any) => {
|
||||
const wav = lamejs.WavHeader.readHeader(recorder.getWAV())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue