GithubHelp home page GithubHelp logo

text-to-speech-api's People

Contributors

acdcjunior avatar hammadh avatar hazemam avatar yom-elect 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

text-to-speech-api's Issues

narrationStyle formatting

Can you provide some details on narration style formatting required? Using a premium account and using a voice that has narration styles (ex Aria with News (formal), News (casual), Customer Service, Chat, Cheerful, Empathetic) adding the line item "narrationStyle": "News (formal)" returns "Unsupported narration style"

WAV instead of MP3

How to request WAV for preview?

MP3 at 48 kbps is extremely low quality for a good voice.
The OPUS codec is much better even at 32 kbps, if WAV is too big for storage.

But having quality voices and this crappy MP3 preview is very bad...

Small suggestion - Add Words Remaining

The output shows the word count

{
    "status": "transcriping",
    "transcriptionId": "<hidden>",
    "contentLength": 1,
    "wordCount": 1
}

But it would be great if it could show: wordsRemaining

Download a file as mp3 via Python API

Hello
I was able to create a request to create a file but it only shows up in Play.at account. I need to download it via Python script. My files are very small. Usually one senctance 3-7 words.

SSML Audio not accepting

https://dm0qx8t0i9gc9.cloudfront.net/previews/audio/BsTwCwBHBjzwub4i4/audioblocks-hissing-whoosh-to-deep-hit-3-film-trailer-cinematic-film-trailer-cinematic_rWUDBOmtP8_NWM.mp3

{
"voice": "Jessica",
"ssml": [
"<audio src="https://dm0qx8t0i9gc9.cloudfront.net/previews/audio/BsTwCwBHBjzwub4i4/audioblocks-hissing-whoosh-to-deep-hit-3-film-trailer-cinematic-film-trailer-cinematic_rWUDBOmtP8_NWM.mp3">Rep. Nancy Mace, who voted against impeaching Trump, says there's 'a lot of pressure' on Republicans to impeach Biden: 'I think that is something that some folks are considering'<break time="500ms"/>

Rep. Nancy Mace says there's pressure on Republicans to vote to impeach President Biden if the party wins the midterms and gains control of the House.

Mace was on NBC's Meet The Press on Sunday, speaking with host Chuck Todd who asked: "Do you expect an impeachment vote against President Biden if Republicans take over the House?"

"
]
}

this is the postman request i am sending, i want to play an audio first then want AI to read out the paragraph, right now it's not doing that. it returns

"errorMessage": "Something went wrong with audio conversion! (Code: ERR_PROCESSING)",

am i doing something wrong? does playht allows this? what i am trying to achieve?

convert endpoint response : "message" instead of "error"

Hi, it seems the key explaining the error in the convert endpoint response is now called "message" instead of "error":

{
  "status": "transcriping" | "error",
  "transcriptionId": string,
  "error": string // Optional
}

should be:

{
  "status": "transcriping" | "error",
  "transcriptionId": string,
  "message": string // Optional
}

Conversion not working - returns "Voice is required."

I am trying to invoke the API with CURL:

curl -H "X-User-ID:my_API_user" -H "Authorization:my_API_secret" -X POST https://play.ht/api/v1/convert -d '{"voice":"Emilia","content":"Something","title":"Something"}'

System responds with this information:
{"error":"Voice is required."}

Could you provide some working examples?

Server 500 Error

I am getting a server error when I try to get the request response (request.GetResponseAsync)

WebRequest request = WebRequest.Create("https://play.ht/api/v1/convert");
           request.Method = "POST";
               request.ContentType = "application/json";
               request.Headers.Set("Authorization", "authkey");
               request.Headers.Set("X-User-ID", "userid");

               using (var streamWriter = new StreamWriter(request.GetRequestStream()))
               {
                   string json = "{\"voice\":\"es-ES-Standard-A\"," +
                                 "\"content\":\"What is the weather today\"}";

                   streamWriter.Write(json);
               }

  WebResponse response = await request.GetResponseAsync();
               Console.WriteLine(((HttpWebResponse)response).StatusDescription);
              
                  using (var dataStream = new StreamReader(response.GetResponseStream()))
               {
                      string responseFromServer = dataStream.ReadToEnd();
                 
        Console.WriteLine("Server Response: " + responseFromServer);
               }

          
               response.Close();
          

Getting Error 500, cannot find examples in documentation.

Hello!

When sending a POST request from a python script using the Requests module, the response is a code 500.

Request is:
requests.post('https://play.ht/api/v1/./convert',headers={'Authorization':user_key,'X-User-ID':user_id},data=dict_args)

Where data consists of

dict_args = {"voice":chosen_voice,"content":body,"title":name}
being all of the keys variables of type string ("content" was also tested with a list of strings containing 1 string)

user_key, user_id as type string.

The lack of examples in the documentation is leaving me out of ideas.

pronunciations do not work as expected

If I pass in pronunciations via the API it doesn't actually render with the expected target pronunciation unless I first go into a a voice project in the UI and add it to the pronunciation library.

In my opinion this kind of defeats the purpose of the API and should be fixed.

Feature requests: Label conversions with project and allow listing of conversions for deletion

Hi, first of all I really like your API and service. From what I can see it is stable and fast. For my use-case I am using it to automatically generate voice-overs for e-learning content and it works great. I would like to make 2 feature requests regarding this usecase:

  1. It would be awesome to be able to label the conversions with a project so they show up on the dashboard in the right project. (for example I could have a project for every course and have the conversions show up there automatically)
  2. There is no way to retrieve a list of transcribed text / conversions after the initial conversion. I believe they are hosted in the cloud somewhere. Also there is no way to delete them. I expect to update the courses from time to time so it would be great to be able to list the conversion and delete conversions before creating new ones. That would probably also benefit your company for not having to host audio that is not being used anymore.

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.