Code Monkey home page Code Monkey logo

elevenlabs-api's People

Contributors

andrewcpu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  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  avatar

elevenlabs-api's Issues

Server returned HTTP response code: 401 for URL

I get this error when i run the command Voice.generate() and when I click on the link that it goes to and outputs (https://api.elevenlabs.io/v1/text-to-speech/VR6AewLTigWG4xSOukaG) I get this "{"detail":"Method Not Allowed"}"

It seems like it's registering with my API because there is no connection to when I set the key in the ElevenLabsAPI object voiceAPI and when I try to generate a file with the Voice object LunaVoice. Any help is greatly appreciated

[REMOVED FOR PRIVACY]

Screenshot 2023-06-02 174005

Problem with requests in PCM_16000

In my Java project, I am using a speech generation constructor like this:

image

However, I am receiving the following error:

image

After some investigation, I realized that ElevenNetworkUtil.FILE_RESULT_TYPES does not have the type "audio/pcm" which is the value that comes in the response.getEntity().getContentType() to the ElevenLabs request.

Unsupported payload value type for speech to speech endpoints

Speech to speech endpoints will throw:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Unsupported payload value type
at net.andrewcpu.elevenlabs.util.ElevenNetworkUtil.handleMultipartBodyRequest(ElevenNetworkUtil.java:103)
at net.andrewcpu.elevenlabs.util.ElevenNetworkUtil.handleBodyRequest(ElevenNetworkUtil.java:118)
at net.andrewcpu.elevenlabs.util.ElevenNetworkUtil.getRequest(ElevenNetworkUtil.java:134)
at net.andrewcpu.elevenlabs.util.ElevenNetworkUtil.sendRequest(ElevenNetworkUtil.java:145)
at net.andrewcpu.elevenlabs.api.ElevenLabsAPI.sendRequest(ElevenLabsAPI.java:11)
at net.andrewcpu.elevenlabs.api.impl.SpeechToSpeechAPI.generateSpeechToSpeech(SpeechToSpeechAPI.java:18)
at net.andrewcpu.elevenlabs.model.voice.Voice.speechToSpeech(Voice.java:245)

I don't have a Speech to Speech model available to my account, so once I fix this I will not be able to confirm whether or not the fix will work.

Websocket API

Hi there, I saw in #15 that you're working on the websocket part of the API

I'm eager to use it!

Do you have any rough ETA? :)

IntelliJ CANNOT FIND Dependency

Hello. I would like to admit a few things. Firstly, i am new to using maven. Secondly, I am very lost. I am trying to create a new maven project in intellij, and add the dependency for this api. In my pom.xml file, i have the following:
<dependency> <groupId>net.andrewcpu.elevenlabs</groupId> <artifactId>elevenlabs-api</artifactId> <version>1.0-SNAPSHOT</version> </dependency>.
I have also tried:
<dependency> <groupId>net.andrewcpu</groupId> <artifactId>elevenlabs-api</artifactId> <version>1.0-SNAPSHOT</version> </dependency>.

Neither of these update the maven dependencies. I have even tried using the search bar in IntelliJ to find the dependency, and nothing works. Whenever I open the terminal in IntelliJ and type in "mvn install" it says that the command was not found. I really want to use this to create an app, but i am getting very frustrated. If anyone could help me, that would be awesome. Thank you.

Multiple API Keys

Hey Andres, it's me again :)

I am now at a point, where I need multiple elevenlabs instances running. This is currently NOT supported, correct?

Is this planned? Maybe with a builder pattern? How complex do you think such a change would be?
Found 57 static variables (ElevenLabs, ElevenNetworkUtil, Choice, GeneratedAudioOutputFormat, ProjectOutputQuality, StreamLatencyOptimization, History, Project, Subscription, User).

Would you be willing (and also have the time) to implement such a thing or should I get started and add a PR some time in the future?

Kind regards and merry christmas
Dustin

Getting error code 400 in /v1/speech-to-speech API from android for new added voice

We get the new added voice on fetching the voices, but when we try to use that voice in speech to speech transformation we get the following error :

Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of java.io.InputStream (no Creators, like default constructor, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information
at [Source: (String)"{"detail":{"status":"voice_does_not_exist","message":"A voice with voice_id DJfO3mfSaig9bYh34Kcb does not exist."}}"; line: 1, column: 1]

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.