fix: audio

This commit is contained in:
idanran 2024-03-23 14:41:08 +00:00
parent bb3bce203d
commit 6ab0cd7f4b
3 changed files with 6 additions and 6 deletions

8
package-lock.json generated
View File

@ -14,7 +14,7 @@
"file-type": "^19.0.0",
"fluent-ffmpeg": "^2.1.2",
"level": "^8.0.1",
"silk-wasm": "^3.3.2",
"silk-wasm": "^3.3.3",
"utf-8-validate": "^6.0.3",
"uuid": "^9.0.1",
"ws": "^8.16.0"
@ -5895,9 +5895,9 @@
}
},
"node_modules/silk-wasm": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/silk-wasm/-/silk-wasm-3.3.2.tgz",
"integrity": "sha512-CXG/hikSInuI/A+EIPoq+z1BRv4SJdhIQKtscOiwZS3udSOr+4DBPYmqNtlV3AKldjEhJChIRCsBtWcWRe54ng=="
"version": "3.3.3",
"resolved": "https://registry.npmjs.org/silk-wasm/-/silk-wasm-3.3.3.tgz",
"integrity": "sha512-9Qj93EtiIuBNkDyEwlPntabEtrm6Xu6LE4y9qZvomvo5+IsXFcXSy+N55kV22OehUTBYlZqOZYtRggA8G9IDGg=="
},
"node_modules/slash": {
"version": "4.0.0",

View File

@ -19,7 +19,7 @@
"file-type": "^19.0.0",
"fluent-ffmpeg": "^2.1.2",
"level": "^8.0.1",
"silk-wasm": "^3.3.2",
"silk-wasm": "^3.3.3",
"utf-8-validate": "^6.0.3",
"uuid": "^9.0.1",
"ws": "^8.16.0"

View File

@ -73,7 +73,7 @@ export async function encodeSilk(filePath: string) {
}
ffmpeg(filePath).toFormat("wav")
.audioChannels(1)
.audioFrequency(16000)
.audioFrequency(24000)
.on('end', function () {
log('wav转换完成');
})