Skip to content

Commit

Permalink
Merge pull request #114 from pettarin/devel
Browse files Browse the repository at this point in the history
Fix bug with Nuance TTS wrapper
  • Loading branch information
readbeyond authored Sep 30, 2016
2 parents 481bc6b + 320838a commit cb883f3
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 53 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

**aeneas** is a Python/C library and a set of tools to automagically synchronize audio and text (aka forced alignment).

* Version: 1.6.0.0
* Date: 2016-09-26
* Version: 1.6.0.1
* Date: 2016-09-30
* Developed by: [ReadBeyond](http://www.readbeyond.it/)
* Lead Developer: [Alberto Pettarin](http://www.albertopettarin.it/)
* License: the GNU Affero General Public License Version 3 (AGPL v3)
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ aeneas
**aeneas** is a Python/C library and a set of tools to automagically
synchronize audio and text (aka forced alignment).

- Version: 1.6.0.0
- Date: 2016-09-26
- Version: 1.6.0.1
- Date: 2016-09-30
- Developed by: `ReadBeyond <http://www.readbeyond.it/>`__
- Lead Developer: `Alberto Pettarin <http://www.albertopettarin.it/>`__
- License: the GNU Affero General Public License Version 3 (AGPL v3)
Expand Down
96 changes: 48 additions & 48 deletions aeneas/ttswrappers/nuancettswrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,53 +221,53 @@ class NuanceTTSWrapper(BaseTTSWrapper):
""" English (USA) """

LANGUAGE_TO_VOICE_CODE = {
CMN_CHN: "Tian-Tian",
CMN_TWN: "Mei-Jia",
FRA_CAN: "Amelie", # F: Chantal
ENG_AUS: "Karen",
ENG_GBR: "Kate", # F: Serena
ENG_IND: "Veena",
ENG_IRL: "Moira",
ENG_SCT: "Fiona",
ENG_USA: "Ava", # F: Allison, F: Samantha, F: Susan, F: Zoe
ENG_ZAF: "Tessa",
NLD_BEL: "Ellen",
POR_BRA: "Luciana",
POR_PRT: "Catarina", # F: Joana
SPA_COL: "Soledad",
SPA_ESP: "Monica",
SPA_MEX: "Angelica", # F: Paulina, F: Empar (Valencian)
ARA: "Laila",
CAT: "Jordi", # M, F: Montserrat
CES: "Iveta", # F: Zuzana
CMN: "Tian-Tian",
DAN: "Ida",
DEU: "Anna-ML", # F-ML, F-ML: Petra-ML
ELL: "Melina",
ENG: "Kate",
EUS: "Miren",
FIN: "Satu",
FRA: "Audrey-ML", # F-ML, F: Aurelie
GLG: "Carmela",
HEB: "Carmit",
HIN: "Lekha",
HUN: "Mariska",
IND: "Damayanti",
ITA: "Alice-ML", # F-ML, F: Federica, F: Paola
JPN: "Kyoko",
KOR: "Sora",
NLD: "Claire",
NOR: "Nora",
POL: "Ewa", # F: Zosia
POR: "Catarina",
RON: "Ioana",
RUS: "Katya", # F: Milena
SLK: "Laura",
SPA: "Monica",
SWE: "Alva",
THA: "Kanya",
TUR: "Cem", # M, F: Yelda
YUE: "Sin-Ji",
CMN_CHN: "Tian-Tian", # F
CMN_TWN: "Mei-Jia", # F
FRA_CAN: "Amelie", # F, F: Chantal, M: Nicolas
ENG_AUS: "Karen", # F, M: Lee
ENG_GBR: "Kate", # F, F: Serena, M: Daniel, Oliver
ENG_IND: "Veena", # F
ENG_IRL: "Moira", # F
ENG_SCT: "Fiona", # F
ENG_USA: "Ava", # F, F: Allison, Samantha, Susan, Zoe, M: Tom
ENG_ZAF: "Tessa", # F
NLD_BEL: "Ellen", # F
POR_BRA: "Luciana", # F, M: Felipe
POR_PRT: "Catarina", # F, F: Joana
SPA_COL: "Soledad", # F, M: Carlos
SPA_ESP: "Monica", # F, F (Valencian): Empar
SPA_MEX: "Angelica", # F, F: Paulina, M: Juan
ARA: "Laila", # F, M: Maged, Tarik
CAT: "Montserrat", # F, M: Jordi
CES: "Iveta", # F, F: Zuzana
CMN: "Tian-Tian", # F
DAN: "Ida", # F, M: Magnus
DEU: "Anna-ML", # F-ML, F-ML: Petra-ML, M: Markus, Yannick
ELL: "Melina", # F, M: Nikos
ENG: "Kate", # F
EUS: "Miren", # F
FIN: "Satu", # F
FRA: "Audrey-ML", # F-ML, F: Aurelie, M: Thomas
GLG: "Carmela", # F
HEB: "Carmit", # F
HIN: "Lekha", # F
HUN: "Mariska", # F
IND: "Damayanti", # F
ITA: "Alice-ML", # F-ML, F: Federica, Paola, M: Luca
JPN: "Kyoko", # F, M: Otoya
KOR: "Sora", # F
NLD: "Claire", # F, M: Xander
NOR: "Nora", # F, M: Henrik
POL: "Ewa", # F, F: Zosia
POR: "Catarina", # F
RON: "Ioana", # F
RUS: "Katya", # F, F: Milena, M: Yuri
SLK: "Laura", # F
SPA: "Monica", # F, M: Jorge
SWE: "Alva", # F, M: Oskar
THA: "Kanya", # F
TUR: "Yelda", # F, M: Cem
YUE: "Sin-Ji", # F
}
DEFAULT_LANGUAGE = ENG_GBR

Expand All @@ -290,7 +290,7 @@ class NuanceTTSWrapper(BaseTTSWrapper):
def __init__(self, rconf=None, logger=None):
super(NuanceTTSWrapper, self).__init__(rconf=rconf, logger=logger)

def _synthesize_single_python_helper(self, text, voice_code, output_file_path=None):
def _synthesize_single_python_helper(self, text, voice_code, output_file_path=None, return_audio_data=True):
self.log(u"Importing requests...")
import requests
self.log(u"Importing requests... done")
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
aeneas (1.6.0.11) stable; urgency=medium

* Fixed bug in Nuance TTS wrapper

-- alberto <alberto@nievo> Fri, 30 Sep 2016 10:42:16 +0200

aeneas (1.6.0) stable; urgency=medium

* Fixed bug #102
Expand Down
5 changes: 5 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

v1.6.0.1 (2016-09-30)
---------------------

#. Fixes bug in Nuance TTS wrapper

v1.6.0 (2016-09-26)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion setupmeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

# package version
# NOTE: generate a new one for each PyPI upload, otherwise it will fail
PKG_VERSION = "1.6.0.0"
PKG_VERSION = "1.6.0.1"

# required packages to install
# NOTE: always use exact version numbers
Expand Down

0 comments on commit cb883f3

Please sign in to comment.