collabora / WhisperFusion

WhisperFusion builds upon the capabilities of WhisperLive and WhisperSpeech to provide a seamless conversations with an AI.
1.45k stars 101 forks source link

Fixed Bugs when Running Demo on Mac #24

Open DamianB-BitFlipper opened 5 months ago

DamianB-BitFlipper commented 5 months ago

When running the Demo on Mac on Chrome, the code was not entirely correct.

Firstly, whisper-live has some bugs with a buffer overflowing on macs. This was fixed on the latest version. Rather than shipping a copy of the library, I simply added whisper-live to the requirements.txt with the latest version pinned.

Secondly, the number of channels in the audio-proessor.js should be set to the minimum of input and output. This is following the official Mozilla documentation.

Lastly, I made the user displayed when interacting with the Demo the best placeholder individual: Alan Turing. The image is licensed freely for private and commercial use.

DamianB-BitFlipper commented 5 months ago

Hi @zoq,

I'm starting to make the submodule approach, but there are changes that I do not exactly know if I should include or exclude when doing a diff of whisper_live and the latest WhisperLive version. Would you be able to perform this merge.

Otherwise, the rest of this PR has some relevant changes:

Fixed a bug in the frontend of the demo Expanded the Readme to include info on how to host Added a gitignore Made the default avatar more generic: Alan Turing

DamianB-BitFlipper commented 5 months ago

I would be happy to answer any questions, should you have any.