LocalAIVoiceChat icon indicating copy to clipboard operation
LocalAIVoiceChat copied to clipboard

Will switching to SeamlessM4Tv2 be better

Open jkfnc opened this issue 1 year ago • 9 comments

SeamlessM4Tv2 Released today seems to have all this and translation with streaming support ? Will it be better than Whisper and Coqui ?

jkfnc avatar Dec 01 '23 16:12 jkfnc

Probably yes. Advancements in this area are made crazy fast, i feel stuff like this expires in like 4 weeks.

KoljaB avatar Dec 01 '23 16:12 KoljaB

I think it may have to be a flag between whisper and Meta as Seamless M4T V2 is still CC-BY-NC license which is incompatible with your MIT License.

jkfnc avatar Dec 04 '23 21:12 jkfnc

Damn. You are right and this also counts for the coqui. Need to revoke MIT 2 here asap.

KoljaB avatar Dec 04 '23 21:12 KoljaB

Probably this one https://huggingface.co/spaces/styletts2/styletts2 can replace Coqui and its MIT.

jayakumark avatar Dec 05 '23 02:12 jayakumark

Not sure about that. StyleTTS2 is only good in english and can't zero shot voice clone.

KoljaB avatar Dec 05 '23 02:12 KoljaB

This one seems to capture Tone and emotion is what they claim https://research.myshell.ai/open-voice/zero-shot-cross-lingual-voice-cloning may work for your TurnVoice project

jkfnc avatar Dec 22 '23 03:12 jkfnc

Fyi, this is what I found as extra information (Mac):

Use Apple's Metal for GPU Acceleration: Apple provides the Metal framework for GPU acceleration on macOS. Some machine learning libraries, like TensorFlow and PyTorch, offer ways to leverage Metal for acceleration through third-party initiatives or experimental support.

For PyTorch, there's an experimental project called PyTorch-Metal that aims to bring Metal GPU acceleration to PyTorch on macOS. For TensorFlow, you might explore Apple's Metal plugin for TensorFlow that enables using Metal for accelerated machine learning operations.

Use PlaidML: PlaidML is an open-source tensor compiler that can enable deep learning on different types of GPUs, including AMD GPUs found in many Macs. It works with Keras as a backend and can be a way to leverage your Mac's GPU for acceleration.

stevenbaert avatar Feb 10 '24 11:02 stevenbaert

maybe MeloTTS/OpenVoice would be a good replacement, also distil_whisper

ajeema avatar Apr 04 '24 22:04 ajeema

maybe MeloTTS/OpenVoice would be a good replacement, also distil_whisper

You can alread use distil whisper models. Update your faster whisper to latest version (pip install -U faster-whisper), then change the model to one of the distil supported ones (distil-large-v2, distil-medium.en, distil-small.en) in this line:

recorder = AudioToTextRecorder(model="tiny.en", language="en", spinner=False)

Melo I found to have rather bad quality (so few emotions) and OpenVoice is a research project which does not get updates. So I won't implement those into RealtimeTTS (takes a lot for a TTS engine to be considered for me to make it realtime).

KoljaB avatar Apr 05 '24 01:04 KoljaB