cloudlanguagetools 11.3.3__tar.gz → 11.3.4__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/PKG-INFO +1 -1
  2. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/azure.py +4 -1
  3. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/options.py +2 -1
  4. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools.egg-info/PKG-INFO +1 -1
  5. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/setup.py +1 -1
  6. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/LICENSE +0 -0
  7. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/README.rst +0 -0
  8. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/__init__.py +0 -0
  9. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/amazon.py +0 -0
  10. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/argostranslate.py +0 -0
  11. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/cereproc.py +0 -0
  12. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/chatapi.py +0 -0
  13. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/constants.py +0 -0
  14. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/deepl.py +0 -0
  15. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/dictionarylookup.py +0 -0
  16. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/easypronunciation.py +0 -0
  17. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/elevenlabs.py +0 -0
  18. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/encryption.py +0 -0
  19. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/epitran.py +0 -0
  20. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/errors.py +0 -0
  21. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/forvo.py +0 -0
  22. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/fptai.py +0 -0
  23. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/google.py +0 -0
  24. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/keys.py +0 -0
  25. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/languages.py +0 -0
  26. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/libretranslate.py +0 -0
  27. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/mandarincantonese.py +0 -0
  28. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/naver.py +0 -0
  29. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/openai.py +0 -0
  30. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/pythainlp.py +0 -0
  31. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/service.py +0 -0
  32. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/servicemanager.py +0 -0
  33. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/spacy.py +0 -0
  34. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/test_services.py +0 -0
  35. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/tokenization.py +0 -0
  36. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/translationlanguage.py +0 -0
  37. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/transliterationlanguage.py +0 -0
  38. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/ttsvoice.py +0 -0
  39. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/vocalware.py +0 -0
  40. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/voicen.py +0 -0
  41. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/watson.py +0 -0
  42. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools/wenlin.py +0 -0
  43. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools.egg-info/SOURCES.txt +0 -0
  44. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools.egg-info/dependency_links.txt +0 -0
  45. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools.egg-info/requires.txt +0 -0
  46. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/cloudlanguagetools.egg-info/top_level.txt +0 -0
  47. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/setup.cfg +0 -0
  48. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/tests/test_audio.py +0 -0
  49. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/tests/test_breakdown.py +0 -0
  50. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/tests/test_chatapi.py +0 -0
  51. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/tests/test_dictionary_lookup.py +0 -0
  52. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/tests/test_llm.py +0 -0
  53. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/tests/test_mock_services.py +0 -0
  54. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/tests/test_servicemanager.py +0 -0
  55. {cloudlanguagetools-11.3.3 → cloudlanguagetools-11.3.4}/tests/test_translation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudlanguagetools
3
- Version: 11.3.3
3
+ Version: 11.3.4
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
@@ -262,9 +262,12 @@ class AzureService(cloudlanguagetools.service.Service):
262
262
  audio_format_str = options.get(cloudlanguagetools.options.AUDIO_FORMAT_PARAMETER, cloudlanguagetools.options.AudioFormat.mp3.name)
263
263
  audio_format = cloudlanguagetools.options.AudioFormat[audio_format_str]
264
264
 
265
+ # https://learn.microsoft.com/en-us/azure/ai-services/speech-service/rest-text-to-speech?tabs=streaming#audio-outputs
266
+ # https://learn.microsoft.com/en-us/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechsynthesisoutputformat?view=azure-python
265
267
  audio_format_map = {
266
268
  cloudlanguagetools.options.AudioFormat.mp3: 'Audio24Khz96KBitRateMonoMp3',
267
- cloudlanguagetools.options.AudioFormat.ogg_opus: 'Ogg48Khz16BitMonoOpus'
269
+ cloudlanguagetools.options.AudioFormat.ogg_opus: 'Ogg48Khz16BitMonoOpus',
270
+ cloudlanguagetools.options.AudioFormat.wav: 'Riff48Khz16BitMonoPcm',
268
271
  }
269
272
 
270
273
  output_temp_file = tempfile.NamedTemporaryFile(prefix=f'cloudlanguage_tools_{self.__class__.__name__}_audio', suffix=f'.{audio_format.name}')
@@ -10,4 +10,5 @@ class ParameterType(enum.Enum):
10
10
  class AudioFormat(enum.Enum):
11
11
  mp3 = enum.auto()
12
12
  ogg_opus = enum.auto()
13
- ogg_vorbis = enum.auto()
13
+ ogg_vorbis = enum.auto()
14
+ wav = enum.auto()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudlanguagetools
3
- Version: 11.3.3
3
+ Version: 11.3.4
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='11.3.3',
9
+ version='11.3.4',
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',