Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Improved after krisgesling feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Genei180 committed Nov 8, 2021
1 parent 3ff4fc2 commit b9f0001
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions mycroft/tts/espeak_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,25 @@ def get_tts(self, sentence, wav_file):

# Create Argument String for Espeak
arguments = ['espeak', '-v', self.lang + '+' + self.voice]
argument = self.config.get("amplitude")
if argument:
arguments.append("-a "+argument)
amplitude = self.config.get('amplitude')
if amplitude:
arguments.append('-a '+amplitude)

argument = self.config.get("gap")
if argument:
arguments.append("-g "+argument)
gap = self.config.get('gap')
if gap:
arguments.append('-g '+gap)

argument = self.config.get("capital")
if argument:
arguments.append("-k "+argument)
capital = self.config.get('capital')
if capital:
arguments.append('-k '+capital)

argument = self.config.get("pitch")
if argument:
arguments.append("-p "+argument)
pitch = self.config.get('pitch')
if pitch:
arguments.append('-p '+pitch)

argument = self.config.get("speed")
if argument:
arguments.append("-s "+argument)
speed = self.config.get('speed')
if speed:
arguments.append('-s '+speed)

arguments.extend(['-w', wav_file, sentence])

Expand Down

0 comments on commit b9f0001

Please sign in to comment.