timhagel / MeloTTS-Docker-API-Server

A docker image to access MeloTTS through API calls
MIT License
14 stars 7 forks source link

Docker Deployment Issue - TypeError: float() argument must be a string or a number, not 'NoneType' #6

Closed cmurrayis closed 3 months ago

cmurrayis commented 3 months ago
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data]     /root/nltk_data...
[nltk_data]   Unzipping taggers/averaged_perceptron_tagger.zip.
[nltk_data] Downloading package cmudict to /root/nltk_data...
[nltk_data]   Unzipping corpora/cmudict.zip.
Traceback (most recent call last):
  File "//app.py", line 11, in <module>
    DEFAULT_SPEED = float(os.getenv("DEFAULT_SPEED"))
TypeError: float() argument must be a string or a number, not 'NoneType'
timhagel commented 3 months ago

@cmurrayis This is caused by not entering the environment variable correctly or not entering them at all... Check you entered environment variables correctly in your docker run command

cmurrayis commented 3 months ago

DEFAULT_SPEED=1 -e DEFAULT_LANGUAGE=EN -e DEFAULT_SPEAKER_ID=EN-Default

Ah cheers - Should wake up a little more before trying things!