Giter Site home page Giter Site logo

meemalabs / laravel-text-to-speech Goto Github PK

View Code? Open in Web Editor NEW
34.0 5.0 14.0 91 KB

πŸ’¬ A wrapper for popular TTS services to create a more simple & uniform API. Currently, only AWS Polly is supported.

License: MIT License

PHP 100.00%
laravel tts text-to-speech aws polly cion meema

laravel-text-to-speech's People

Contributors

brianrlewis avatar chrisbbreuer avatar dependabot-preview[bot] avatar etopian avatar luigel avatar yurik94 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

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-text-to-speech's Issues

How to access Neural voices?

Hi there,

First, let me say this is an awesome package, thank you.

I just installed the package and I'm testing it out but I can only generate Standard voices. Is it possible to have access to Neural voices instead?

Also, how can I get the path to the output.mp3 file? I need the path to save it into the database.

We have a new home!

Hi everyone,

We have simply adjusted the organization that manages the growth & maintenance of this OS package. The same team is managing it. Nothing has changed, besides the GitHub namespace πŸ€™πŸΌ

Happy developing!

[IDEA] Thanks!

Just wanted to say thank you for your work on this. It is quite helpful and pretty cool. No issues or questions, just a bit of gratitude.

Limited number of characters to 2000 when using "ssml" speech and request error "Invalid SSML"

Hello, I have been using the library and it works correctly, but when I try to apply the TextToSpeech::ssml() method if there is more than 2000 characters (I have verified it and the error is due to the characters) it throws me the following error message:
http://prntscr.com/1JW3E4ZRCp-d

The thing is that without using "ssml" I don't have any character limits, or at least for now.

*The tags open <"speak"> and close <"/speak"> are added without quote, but are removed by the code editor adding it here on Github.

$text_polly = '<"speak">I add text here...<amazon:effect vocal-tract-length="+18%"> Vocal tract change!</amazon:effect>up to 2000 characters or less does not give an error, but more 2000 characters show error message<"/speak">';

$voice = 'Lucia';
$language = 'es-ES';
$options = ['voice' => $voice];
$path = TextToSpeech::language($language);
$path = TextToSpeech::ssml()->saveTo('/mp3/en/test-ssml')->convert($text_polly, $options);

I have been testing on the Amazon Polly AWS page and there it works for me to add more than 2000 characters.

Could it be limited in the API itself?

Originally posted by @sylarlocke in #34

Speech marks support

First off, thanks for creating this package! It works great to convert text to speech.

I am wondering if it's possible to use the speech marks output option?

I see in the code that I can pass options, but I am not sure how to format things. I've tried something like:

$path = TextToSpeech::saveTo('output.txt')
        ->convert('Input text', [
            'output-format' => 'json',
            'voice-id' => 'Mathieu',
            'speech-mark-types' => 'sentence',
        ]);

It doesn't work. I feel like this is just not supported yet, as the config document says β€œCurrently, mp3 is the only supported format.”

So my question is, is there a way to do this already? And if not, I'm open to contributing with a pull request if you can just point me in the general direction as to how you'd implement this.

Thanks! :)

Undefined array key "token"

How could we help you?

Hi, i used laravel-text-to-speech package since 6 months "it work well", but since 3 weeks i get this error : Undefined array key "token". i need help
FireShot Pro Webpage Capture 001 - 'Undefined array key token' - 127 0 0 1
to resolve it

Laravel 10 support

Please describe the feature

Hi, when will be able to use this package in Laravel 10?

Thanks.

Laravel 11 support

Package version

1.5.2

Laravel version

11

PHP version

8.3

Description

Hi, when will be able to use this package in Laravel 11?

Maybe we can change the composer.json file so any Laravel version is allowed somehow? @luigel (something like >= 6 instead of 6 | 7 | 8 ....)

Thanks.

Steps to reproduce

Try to install on a Laravel 11 app

laravel 9

Please describe the feature

Hi, when will be able to use this plugin in Laravel 9? Thanks.

Discussion - Additional Drivers?

Hi everyone,

Just starting a discussion here πŸ‘

We don't currently need any other driver than AWS Polly, but how about you? Anyone out there that would like to use this wrapper for WaveNet or a different service?

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.