Replies: 3 comments 3 replies
-
zeppOS 3, balance系列手表 |
Beta Was this translation helpful? Give feedback.
2 replies
-
感谢您的来信,此时我不在办公室,稍后会及时阅读。在此期间我不方便接收邮件。如果您想及时获得通讯,请拨打我的手机联系我,谢谢您。
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I do things like this. First, I record the file using the recorder from this documentation: Zepp Recorder API. Then I send it using Page: getFileBuffer(filePath) {
const res = readFileSync({
path: filePath,
});
return Buffer.from(res);
} App Side: const fileBuffer = req.fileBuffer;
const headers = { "Content-Type": "application/json" };
const response = await fetch(url, {
method: 'POST',
headers,
body: fileBuffer
}); On the backend: const path = 'test.opus';
const buffer = Buffer.from(req.body);
await fs.writeFile(path, buffer);
convertToWav(path, outputPath); The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
咨询如何将录音的音频文件上传至云端进行语音识别,或者本地是否有识别库?
我尝试将录音文件OPUS转为base64,发现好像zeppos不支持。
尝试直接通过fetch API将文件包裹在formData中进行上传,也同样不支持。
请问该如何处理,这种情况
我正在开发一个 语音对话的应用。
来自中科院医学团队,谢谢
我的邮箱 xkk9866@yeah.net
Beta Was this translation helpful? Give feedback.
All reactions