# Bug report: TTS - eSpeak. (documents, code)

**URL:** https://community.openconversational.ai/t/bug-report-tts-espeak-documents-code/11875
**Category:** This category is being retired - Support
**Created:** [February 5, 2022, 10:16pm UTC](https://community.openconversational.ai/t/bug-report-tts-espeak-documents-code/11875 "2022-02-05T22:16:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DrStein99](https://community.openconversational.ai/user_avatar/community.openconversational.ai/drstein99/32/3545_2.png) [@DrStein99](https://community.openconversational.ai/u/DrStein99)
#### Post date: [February 5, 2022, 10:16pm UTC](https://community.openconversational.ai/t/bug-report-tts-espeak-documents-code/11875/1 "2022-02-05T22:16:04Z")

</div>

Under this [link](https://mycroft-ai.gitbook.io/docs/using-mycroft-ai/customizations/tts-engine) in the documents, reads:

```auto
Added in mycroft-core v21.2.2
Further customization of espeak voices is available through the following options:
Amplitude
Gap
Capital
Pitch
Speed
For more information on these parameters see espeak --help

```

In looking at the source code (espeak\_tts.py):

```auto
arguments = ['espeak', '-v', self.lang + '+' + self.voice]
        amplitude = self.config.get('amplitude')
        if amplitude:
            arguments.append('-a '+amplitude)

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

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

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

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

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

```

1. The parameters (speed, amplitude) must be in LOWERCASE, or else will not be recognized by the code.
2. Parameters must be surrounded in QUOTES in the .conf file as a STRING and not an INTEGER, or the code will error out.

---

<div class="post-metadata">

### Author: ![baconator](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/d07c76/32.png) [@baconator](https://community.openconversational.ai/u/baconator)
#### Post date: [February 6, 2022, 12:00am UTC](https://community.openconversational.ai/t/bug-report-tts-espeak-documents-code/11875/2 "2022-02-06T00:00:05Z")

</div>

This would best be filed as an issue on github.

---

<div class="post-metadata">

### Author: ![gez-mycroft](https://community.openconversational.ai/user_avatar/community.openconversational.ai/gez-mycroft/32/1937_2.png) [@gez-mycroft](https://community.openconversational.ai/u/gez-mycroft)
#### Post date: [February 8, 2022, 2:42am UTC](https://community.openconversational.ai/t/bug-report-tts-espeak-documents-code/11875/3 "2022-02-08T02:42:11Z")

</div>

Hey, I’ve removed the capitalized list from the docs as I can see how that could be confusing. Hopefully the example config gives a good enough example to work from?

---

<div class="post-metadata">

### Author: ![DrStein99](https://community.openconversational.ai/user_avatar/community.openconversational.ai/drstein99/32/3545_2.png) [@DrStein99](https://community.openconversational.ai/u/DrStein99)
#### Post date: [February 8, 2022, 6:08am UTC](https://community.openconversational.ai/t/bug-report-tts-espeak-documents-code/11875/4 "2022-02-08T06:08:15Z")

</div>

Thank you. That will probably do the trick.
