Bubble.io - Text to Speech API Part 1
In this Bubble tutorial we demonstrate how to connect to the speechgen.io API using the Bubble API connector. In Part 2 we'll show you how to create a simple text to speech generator in Bubble using workflows.
Unlock the power of text-to-speech: Learn how to integrate SpeechGen.io's API with Bubble in minutes!
Transform your Bubble app: Discover how to turn user text into dynamic MP3 files with just a few clicks!
Elevate user experience: Master the art of API integration and add cutting-edge speech features to your no-code project!
Integrating Text-to-Speech in Bubble.io
A big thank you to everyone who's been leaving comments and requests on our videos. We read every single one. This is in response to one of those comments. How do you do text to speech? So you're turning what a user types into your Bubble app into an mp3 file of generated speech. And I'm going to be showing you how to use the API for this service here speechgen.io.
Getting Started with SpeechGen.io
A quick word of advice when you sign up you get quite a generous selection of credits to test out their tool. However you do need to top up your account with an actual payment of credits in order to get access to the API. But once you've done that you can start looking at the API documentation.
Setting Up the API Connector in Bubble
Working with the Bubble API connector, you're basically trying to work out how to plumb the formatting that a service like this gives you in the API documentation into your Bubble app. And so I'm going to show you how I've done that with mine. So if I go into my Bubble app and then go into the API connector I've added a new API speechgen.io and I add a new call. So I could call this text to speech. I make it an action so that I can get in my workflows.
Configuring the API Call
And then if I go back to the documentation I can see that the endpoint is here. So I copy and paste that into the field there. And then the data needs to be in not in JSON which is the default but in form data. And if we look at the fields here the mandatory fields are token, email, voice and text. So you can see here that I've got my token, I've blurred it out, email, text. I've also added format because I know that I want to get my response back as an mp3 and then I pick a voice from their catalog of voices.
Testing the API Call
And so once I've got all that in place I can test it. So my text is let's change this so that it's new, subscribe to Planet No Code now. And then if I initialize the call I get this response back and they provide me with a URL. And so I'm going to copy the URL, open a new tab, open that URL. Okay I don't know how well that came across my mic but that has worked and it was very quick at generating it.
Conclusion and Next Steps
So that's a quick overview of how to use the API connector to integrate in with the service in order to get text to speech working. Come back for part two which I'm going to record right away right now to show you how we can start putting this into the front end of our Bubble app.
Get the Complete Bundle for Just $99
Access 3 courses, 390+ tutorials, and a vibrant community to support every step of your app-building journey.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 390+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Save over 70%!
Valued at $80
Valued at $85
Valued at $30
Valued at $110
Valued at $45
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
We're here to help you launch your no code SaaS. Reach out to the team and we'll double check our vast library for useful content. We'll advise you on how we'd tackle the same problem and there's a good chance we'll record the video to help the wider community.
As a Planet No Code member, you'll receive a discount on our Bubble coaching sessions. Monthly members receive a 10% discount, while Annual members receive a 17.5% discount. To redeem your discount, simply log into your account and book a coaching session through our platform.
Our 8-week intensive mentorship program is designed to provide personalized guidance and support to help you accelerate your startup journey. You'll be matched with a startup expert who will work with you one-on-one to set goals, overcome challenges, and make rapid progress.
To apply for the Mastery Program, simply click the "Request Invitation" button on our pricing page and fill out the application form. Our team will review your application and schedule a call with you to discuss your goals and determine if the program is a good fit for your needs.
We accept all major credit cards, including Visa, Mastercard, American Express, and Discover.
While we don't offer a free trial, we do provide a 14-day money-back guarantee. If you're not completely satisfied with your membership within the first 14 days, simply contact our support team, and we'll issue a full refund.