Nimboss here! I do Python, HTML, a fair amount of CSS and basic JavaScript. My personal website is @ nimboss.me.
My GitHub Stats -
Reach me @ Nimboss#9651 on Discord :>
A synchronous and asynchronous API wrapper for the UberDuck text-to-speech service (https://uberduck.ai) with 100% coverage and top-notch utilities.
License: MIT License
My GitHub Stats -
Reach me @ Nimboss#9651 on Discord :>
I try running the simple console example program, but every time I execute it, it throws a string of errors, ending with a PermissionError: [Errno 13] Permission denied
Again, this is just the simple console example from examples.md, whenever I run it it gives the same error
The soundbyte plays
PS D:\Documentos\Programacion\Python\TTS> & d:/Documentos/Programacion/Python/TTS/.venv/Scripts/python.exe d:/Documentos/Programacion/Python/TTS/test.py
Enter speech: i am going insane
Enter voice or enter "LIST" to see list of voices: optimus-prime
Traceback (most recent call last):
File "D:\Documentos\Programacion\Python\TTS\.venv\Lib\site-packages\pydub\playback.py", line 71, in play
_play_with_ffplay(audio_segment)
File "D:\Documentos\Programacion\Python\TTS\.venv\Lib\site-packages\pydub\playback.py", line 15, in _play_with_ffplay
seg.export(f.name, "wav")
File "D:\Documentos\Programacion\Python\TTS\.venv\Lib\site-packages\pydub\audio_segment.py", line 867, in export
out_f, _ = _fd_or_path_or_tempfile(out_f, 'wb+')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Documentos\Programacion\Python\TTS\.venv\Lib\site-packages\pydub\utils.py", line 60, in _fd_or_path_or_tempfile
fd = open(fd, mode=mode)
^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\myuser\\AppData\\Local\\Temp\\tmp4tj5y34n.wav'
0.0.4
Windows 11
I'm using visual studio code, I tried running it in admin mode and it still does not work.
SSL Issue
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host api.uberduck.ai:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)')]
Unclear.
0.0.1
Windows 11 22H2 (22581.1)
Python 3.10
Hi!
I get the following exception when trying to run the Uberduck API. The issue wasn't there before and I read that it could be caused by Python 3.7 not supporting the Literal library. Is there a way around this or do I have to update to Python 3.8?
File ".../venv/lib/python3.7/site-packages/uberduck/__init__.py", line 12, in <module>
from uberduck.main import UberDuck, get_voices, get_voices_async
File ".../venv/lib/python3.7/site-packages/uberduck/main.py", line 13, in <module>
from typing import Union, Literal, Optional, List
ImportError: cannot import name 'Literal' from 'typing' (/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/typing.py)
Edit:
I removed the Literal import from line 13 of main.py in the uberduck package and added this below:
try:
from typing import Literal
except ImportError:
from typing_extensions import Literal
This makes it work in Python 3.7 as well.
Include the Uberduck API in Python 3.7.9
The program runs
Python exception shows
0.0.4
MacOS Ventura 13.3.1 (a)
When I LIST the voices I see the voice I want to use ("azure_en-US-EmmaMultilingualNeural"), but if I try to use it I get an error.
`import uberduck
client = uberduck.UberDuck(getenv('UBERDUCK_API_KEY'), getenv('UBERDUCK_SECRET_KEY'))
voices = uberduck.get_voices(return_only_names = True)
speech = "testing"
voice = "azure_en-US-EmmaMultilingualNeural"
if voice == 'list':
print('Available voices:\n')
for voice in sorted(voices): # sorting the voice list in alphabetical order
print(voice)
exit()
#if voice not in voices:
client.speak(speech, voice, play_sound = True)
print('Spoke voice')`
#if voice not in voices:
client.speak(speech, voice, play_sound = True)
print('Spoke voice')
If you use the simple names in the list like "preacher" it speaks. I would expect that I could also use the name that I want to use from the list, and it would speak.
In reality, I get this error uberduck.classes.InvalidVoice: Invalid voice
Traceback:
Traceback (most recent call last): File "/Users/oddflower/poppy-ai/duck.py", line 27, in <module> client.speak(speech, voice, play_sound = True) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/uberduck/main.py", line 174, in speak _handle_exceptions(response.status_code, json, voice) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/uberduck/main.py", line 41, in _handle_exceptions raise InvalidVoice(voice) uberduck.classes.InvalidVoice: Invalid voice: azure_en-US-EmmaMultilingualNeural.
0.0.5
MacOS 14.2.1
Thank you in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.