Skip to content

Commit

Permalink
Чуть меньше обрезаем аудио, так лучше wit.ai распознаёт
Browse files Browse the repository at this point in the history
  • Loading branch information
Serega007RU committed Oct 8, 2022
1 parent 5edb22a commit 11c7b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/background/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ async function prepareAudio(audio) {

const audioSlice = await sliceAudio({
audioBuffer,
start: 1.5,
end: audioBuffer.duration - 1.5
start: 1.0,
end: audioBuffer.duration - 1.0
});

return audioBufferToWav(audioSlice);
Expand Down

0 comments on commit 11c7b71

Please sign in to comment.