cloudlanguagetools 6.9__tar.gz → 7.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/PKG-INFO +1 -1
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/elevenlabs.py +12 -1
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools.egg-info/PKG-INFO +1 -1
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools.egg-info/requires.txt +1 -1
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/setup.py +2 -2
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/LICENSE +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/README.rst +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/__init__.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/amazon.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/argostranslate.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/azure.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/cereproc.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/chatapi.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/constants.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/deepl.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/dictionarylookup.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/easypronunciation.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/encryption.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/epitran.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/errors.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/forvo.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/fptai.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/google.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/keys.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/languages.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/libretranslate.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/mandarincantonese.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/naver.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/openai.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/options.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/pythainlp.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/service.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/servicemanager.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/spacy.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/test_services.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/tokenization.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/translationlanguage.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/transliterationlanguage.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/ttsvoice.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/vocalware.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/voicen.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/watson.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/wenlin.py +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools.egg-info/SOURCES.txt +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools.egg-info/dependency_links.txt +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools.egg-info/top_level.txt +0 -0
- {cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: cloudlanguagetools
|
3
|
-
Version:
|
3
|
+
Version: 7.1
|
4
4
|
Summary: Interface with various cloud APIs for language processing such as translation, text to speech
|
5
5
|
Home-page: https://github.com/Language-Tools/cloud-language-tools-core
|
6
6
|
Author: Luc
|
@@ -99,6 +99,12 @@ class ElevenLabsService(cloudlanguagetools.service.Service):
|
|
99
99
|
}
|
100
100
|
|
101
101
|
response = requests.post(url, json=data, headers=headers, timeout=cloudlanguagetools.constants.RequestTimeout)
|
102
|
+
if response.status_code != 200:
|
103
|
+
error_message = f'ElevenLabs: error processing TTS request: {response.status_code} {response.text}'
|
104
|
+
logger.error(error_message)
|
105
|
+
raise cloudlanguagetools.errors.RequestError(error_message)
|
106
|
+
|
107
|
+
|
102
108
|
response.raise_for_status()
|
103
109
|
|
104
110
|
output_temp_file = tempfile.NamedTemporaryFile()
|
@@ -144,6 +150,11 @@ class ElevenLabsService(cloudlanguagetools.service.Service):
|
|
144
150
|
response = requests.get(url, headers=self.get_headers(), timeout=cloudlanguagetools.constants.RequestTimeout)
|
145
151
|
response.raise_for_status()
|
146
152
|
model_data = response.json()
|
153
|
+
|
154
|
+
# restrict to models that can do text to speech (elevenlabs introduced voice conversion)
|
155
|
+
model_data = [model for model in model_data if model['can_do_text_to_speech']]
|
156
|
+
|
157
|
+
#pprint.pprint(model_data)
|
147
158
|
# model_data:
|
148
159
|
# [{'can_be_finetuned': True,
|
149
160
|
# 'can_do_text_to_speech': True,
|
@@ -185,7 +196,7 @@ class ElevenLabsService(cloudlanguagetools.service.Service):
|
|
185
196
|
for model in model_data:
|
186
197
|
model_id = model['model_id']
|
187
198
|
model_name = model['name']
|
188
|
-
model_short_name = model_name.replace('Eleven ', '').
|
199
|
+
model_short_name = model_name.replace('Eleven ', '').strip()
|
189
200
|
for language_record in model['languages']:
|
190
201
|
try:
|
191
202
|
language_id = language_record['language_id']
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: cloudlanguagetools
|
3
|
-
Version:
|
3
|
+
Version: 7.1
|
4
4
|
Summary: Interface with various cloud APIs for language processing such as translation, text to speech
|
5
5
|
Home-page: https://github.com/Language-Tools/cloud-language-tools-core
|
6
6
|
Author: Luc
|
@@ -6,7 +6,7 @@ from setuptools.command.install import install
|
|
6
6
|
# twine upload dist/*
|
7
7
|
|
8
8
|
setup(name='cloudlanguagetools',
|
9
|
-
version='
|
9
|
+
version='7.1',
|
10
10
|
description='Interface with various cloud APIs for language processing such as translation, text to speech',
|
11
11
|
long_description=open('README.rst', encoding='utf-8').read(),
|
12
12
|
url='https://github.com/Language-Tools/cloud-language-tools-core',
|
@@ -21,7 +21,7 @@ setup(name='cloudlanguagetools',
|
|
21
21
|
packages=['cloudlanguagetools'],
|
22
22
|
install_requires=[
|
23
23
|
'clt_wenlin>=1.0',
|
24
|
-
'clt_requirements>=1.
|
24
|
+
'clt_requirements>=1.3',
|
25
25
|
'pinyin_jyutping>=0.9',
|
26
26
|
],
|
27
27
|
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools/transliterationlanguage.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cloudlanguagetools-6.9 → cloudlanguagetools-7.1}/cloudlanguagetools.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|