timhagel/MeloTTS-Docker-API-Server

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

Closed this issue · 2 comments

[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'

@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

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

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