Robitx / gp.nvim

Gp.nvim (GPT prompt) Neovim AI plugin: ChatGPT sessions & Instructable text/code operations & Speech to text [OpenAI]
MIT License
537 stars 50 forks source link

bug: Whisper often fails on system with German locale because of number formatting of sox silence #77

Closed nilsglow closed 7 months ago

nilsglow commented 7 months ago

In the transcribe function sox is used to analyze the recording regarding the silence threshold. If the result (stored in shell variable $t) is a decimal number and the system has a locale with a decimal separator other than ., then the next call to sox fails.

There is a simple one-line solution, I will provide a PR in a moment...

nilsglow commented 7 months ago

PR in #78