Comments (1)
if you want use fairseq vietnam model : sub = SubToAudio(language='vie')
.
sub = SubToAudio(languages='vie')
subtitle = sub.subtitle("01.vi.srt")
sub.convert_to_audio(data=subtitle, tempo_mode="all", tempo_speed=1.3, output_path="01.vi.wav", save_temp=True,)
there is no need to pass languages
argument on self.convert_to_audio()
func. fairseq model only have 1 speaker and 1 languages. and i notice that you give wrong argument lang="vie"
, instead languages="vie"
.
arg languages
in SubToAudio()
and self.convert_to_audio()
have different purpose. SubToAudio(languages=<iso-code>)
is for initialze and downloading model. self.convert_to_audio(languages="fr-fr")
is for specify the languages within model that have multiple languages.
if you have your own model and config sub = SubToAudio(model_path="G_100000.pth" , config_path="config.json")
, make sure it is correct model and corect config and correct path. isolate class instance to test or you can directly test your model from TTS api to check wether is perfeclty fine and can load.
maybe you have similiar issue like this, the model and config.json is not suported, wrong or does not match with model :
AttributeError: 'dict' object has no attribute 'replace'
if the model have multiple speaker and languages you can check them print(sub.apitts.languages)
and print(sub.apitts.speakers)
.
from subtoaudio import SubToAudio
sub = SubToAudio(model_path="G_100000.pth" , config_path="config.json")
print(sub.apitts.languages) #print list of language on model
print(sub.apitts.speakers) #print list of speakers
from sub-to-audio.
Related Issues (17)
- permission error? HOT 2
- https://elevenlabs.io/speech-synthesis HOT 1
- voice conversion error ['NoneType' object has no attribute 'float'] on colab HOT 1
- support for piper-tts? HOT 2
- Doesn't work at Windows HOT 4
- Can't get output file HOT 2
- Faiseq doesn't work HOT 1
- Is it possible to integrate openai's tts model api?
- option to speed up the voice? HOT 4
- Include any example HOT 1
- exe version?
- Use Cuda Gpu HOT 1
- UnicodeDecodeError HOT 1
- Speed issues HOT 3
- I can't make it rotate HOT 3
- models coqui.ai HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sub-to-audio.