[Develop] 调整流输入在use-vad情况下的逻辑。#71
Merged
lovemefan merged 1 commit intolovemefan:mainfrom Mar 24, 2025
Merged
Conversation
1. 在该情况下,可以看到实时的语音更新。原先的“最长语音”与“切割所需最短间隔”规则依旧生效。 2. 在该情况下,如果需要切割部分语音,剩余部分会换行继续输出。 3. 在该情况下,如果缓冲区没有需要识别的语音,并且接受到一段没有语音活动的音频,会舍弃之。 4. 内部记录的时间戳含义发生改变,从相对值调整为绝对值,这可以增强对pcmf32缓冲区处理的代码可读性。 5. 修复之前其他人提交中,时间区间会反复出现的bug。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这是现在main中的输出,有未清空输出缓冲区的问题。


这是修复后的输出,考虑到环境问题声音很小,只敢测“喂喂喂”。