Git Product home page Git Product logo

uberduck's Introduction

Hi there ๐Ÿ‘‹

Nimboss here! I do Python, HTML, a fair amount of CSS and basic JavaScript. My personal website is @ nimboss.me.

I specialize in Web dev, making Discord Bots and experimenting with APIs.

My GitHub Stats -

My GitHub Stats

Reach me @ Nimboss#9651 on Discord :>

uberduck's People

Contributors

imnimboss avatar oyvinw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

uberduck's Issues

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)')]

Description

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)')]

Reproduction steps

Unclear.

Uberduck version

0.0.1

Operating system & Python Version

Windows 11 22H2 (22581.1)
Python 3.10

Invalid voice even when in the LIST

Description

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.

Reproduction steps

`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:

print('Invalid voice')

exit()

client.speak(speech, voice, play_sound = True)
print('Spoke voice')`

#if voice not in voices:

print('Invalid voice')

exit()

client.speak(speech, voice, play_sound = True)
print('Spoke voice')

Expected result

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.

Actual result

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.

Uberduck version

0.0.5

Operating system

MacOS 14.2.1

Checklist

  • - This bug was found on the latest version of Uberduck
  • - You have checked that there is no issue already mentioning this bug, open or closed
  • - Full details of the bug have been provided/shown, including full tracebacks in case of exceptions
  • - All API keys and API secrets have been hidden/omitted from any screenshots or code, if any

Additional context

Thank you in advance!

ImportError: cannot import name 'Literal' from 'typing'

Description

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.

Reproduction steps

Include the Uberduck API in Python 3.7.9

Expected result

The program runs

Actual result

Python exception shows

Uberduck version

0.0.4

Operating system

MacOS Ventura 13.3.1 (a)

Trying to install pip install 0.0.3 always fails

no matter what I do I get this error, both on Mac and windows. I've tried everything I could think of.
installing 0.0.1 works fine but its out-dated and the documentation that's on here doesn't completely work with it

please. help.

image

PermissionError: Errno 13

Description

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

Reproduction steps

Again, this is just the simple console example from examples.md, whenever I run it it gives the same error

Expected result

The soundbyte plays

Actual result

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'

Uberduck version

0.0.4

Operating system

Windows 11

Checklist

  • - This bug was found on the latest version of Uberduck
  • - You have checked that there is no issue already mentioning this bug, open or closed
  • - Full details of the bug have been provided/shown, including full tracebacks in case of exceptions
  • - All API keys and API secrets have been hidden/omitted from any screenshots or code, if any

Additional context

I'm using visual studio code, I tried running it in admin mode and it still does not work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.