Coder Social home page Coder Social logo

chattykathy's People

Contributors

dominik-meissner avatar ilbonzo avatar myurasov avatar sethunath 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chattykathy's Issues

AWS Sumerian

How do I make this work with AWS Sumerian ? I want a speech sentence with a variable that uses ctx.worldData.obj . I get invalid operation error .

Need to handle AWS server errors

After a server error from AWS, all future attempts at calling ChattyKathy fail until a refresh.
Need error catching to deal with this.
Will need to work on it on our end... suggestions welcome...
Thanks

Audio output is blocked on iOS (and probably elsewhere)

Thanks for the fantastic repo.

I have code that will correctly output speech audio when a button is pressed using kathy.speak() as in the repo example, using desktop chrome browser. On iOS (chrome and safari), no audio is played when the button is pressed, and the following console error is displayed:

Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

This appears to be because the user action of hitting a button is not correctly link to the playing of the sound. This is described, eg here:
scottschiller/SoundManager2#178

Is there a solution to this?

Thanks!

AWESOME script!!! KUDOS!!!

I was looking for something like this... Originally my code was on PHP... so this means I can now store it on a CDN... GREAT!!!

I made a couple of files based on your code, just by changing the VOICES to a female one, and the other file with a male voice.

Now, from your perspective... is there a way I could create conversations by using two voice at diffent given times... Like a dialogue or narration by two people?

Can this be done with your current setup?

Thanks

PS.- How many words can each voice handle per submission?

Not working on Android

On android is not working.

I get following error:
DOMException: play() can only be initiated by a user gesture. (anonymous) @ ChattyKathy.js:177 playAudio @ ChattyKathy.js:166

cache conflict with multiple voices.

When using multiple objects for different voices, if you do Amy.Speak('blah') and then do something like Justin.Speak('blah), Justin uses Amy's voice too.

Lost in credentials

First: thank you for this outstanding wrapper!

Currently I use the following code:
var awsCredentials = new AWS.Credentials('secret', 'secret2');

This is hardcoded, and it links to a User that has ReadOnly access to Polly only, so even if this is "hacked", the damage won't be too big.

That said, I want to do this right, but the code on the front page is apparently not the whole story.

What should I add, exactly, instead of the above to have all users on my website become the above user, so that this account is basically used as one big guest account? I tried to find out by browsing the AWS help files, but got totally lost.

save/doawnload audio file?!

Dear,
I can save the mp3 audio files, for each message fragment of a long text.
I want to know if Amazon poly can provide any kind of identifier for each mp3 that it creates? And how it can be related to specific text/message?
Or we have to implement it ourselves?

Thanks in advance,

Feature request: SSML support

SSML not working: http://docs.aws.amazon.com/polly/latest/dg/ssml-to-speech-console.html

kathy.Speak('<speak>He was caught up in the game.<break time="1s"/> In the middle of the 10/3/2014 <sub alias="World Wide Web Consortium">W3C</sub> meeting he shouted, "Score!" quite loudly. When his boss stared at him, he repeated <amazon:effect name="whispered">"Score"</amazon:effect> in a whisper.</speak>');

On line 111 the TextType has to be set:
``
Text: message,

TextType: 'ssml',

VoiceId: settings.pollyVoiceId
``

I will add a PR with a regex to check if message is ssml and set TextType to ssml.

ChattyKathy and Safari iOS

I'm using Chattykathy and it works great on all browsers, except Safari.
For some reason, Safari doesn't want to play the audio. It gets stuck on the "loadstart"-event and never reaches the "durationchange"-event.

Feature Request: Save audio to local file

It would be very helpful to have a function that will use this library to save the audio to a local file if running on a server (eg to a local MP3 file) rather than play it through the client browser.
Thanks!

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.