Constructor
new NvsAudioFileWriter(sampleRate, channelCount, outputAudioFilePath)
Parameters:
| Name | Type | Description |
|---|---|---|
sampleRate |
采样率 | |
channelCount |
通道数 | |
outputAudioFilePath |
输出音频文件路径 |
- Source:
Methods
close()
关闭。您必须调用 close() 来生成最终的音频文件并释放 wasm 持有的资源!
- Source:
Returns:
getInternalObject()
获取内部对象
- Source:
Returns:
setInternalObject(obj)
设置内部对象
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
内置对象 |
- Source:
Returns:
writeAudioData(audioData)
写音频数据
Parameters:
| Name | Type | Description |
|---|---|---|
audioData |
音频数据 |
- Source: