meemalabs / laravel-text-to-speech Goto Github PK
View Code? Open in Web Editor NEW㪠A wrapper for popular TTS services to create a more simple & uniform API. Currently, only AWS Polly is supported.
License: MIT License
π¬ A wrapper for popular TTS services to create a more simple & uniform API. Currently, only AWS Polly is supported.
License: MIT License
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.
Much appreciate the package. Thanks for the work and upkeep on this.
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!
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.
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
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! :)
@luigel can you add an env
variable for the voice_id
? cause I think most user will want to override the Text-to-speech voice ID in the environment file.
Hi, when will be able to use this package in Laravel 10?
Thanks.
I need your help!!
1.5.2
11
8.3
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.
Try to install on a Laravel 11 app
Hi, when will be able to use this plugin in Laravel 9? Thanks.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.