Generate an AI transcript in Bubble with Speaker Labels - Part 1
In this Bubble tutorial we demonstrate the AssemblyAI API Speaker Diarization (AKA audio transcription with speaker labels).
Unlock the power of AI transcripts: Learn how to extract speaker-labeled text from audio using Assembly AI in Bubble!
Master multi-speaker transcription: Discover how to use the Assembly AI API to identify speech-to-text with speaker labels in this Bubble tutorial.
Elevate your Bubble app: See how to integrate advanced AI text generation features like speaker-labeled transcripts using Assembly AI's powerful API.
Introduction to Assembly AI API
In this Bubble tutorial video, I'm going to show you step one of how you can use the Assembly AI API to extract different speakers and the text that they say from audio. We're going to be using the API to upload an audio file and then get a transcript back but know who said what in the transcript. But before I launch into that, did you know that we have got videos that you cannot find on YouTube exclusively available to our members at PlanetNoCode.com.
Recap on Assembly AI API
Right, this is going to pick up on some early videos where I was using the Assembly AI API. And so if you need a bit of a recap on each of the individual steps, you can go back and check out those videos. But I am going to be explaining what's going on here, which is that I'm in the Bubble API connector and I've added in an API called Assembly AI. I've added in my API key into the authorization field, private key and header and I'm making a post request to the Assembly AI API and this is the end point here.
Setting Up the API Call
It is an action so I can run it in a workflow and I'm sending it as JSON. And within the body, I've got one body parameter that I've made dynamic and that is I have to provide Assembly AI with a public open, accessible audio file or video file for them to be able to fetch and turn into a transcript. So I've uploaded an audio file to the Bubble app storage and here is the link directly to it there. The only step that really done differently from my earlier Assembly AI videos is that rather than this value into body, speaker_labels is true.
Initializing the API Call
And so if I initialize this call, and this will serve as a good recap for how the Assembly AI API works, I get back an ID and check out my other videos for how you can get this all automated running through a webhook but right now I'm just doing it in the API connector to demonstrate all of the steps. So I'm going to copy the ID because this is the unique identifier for the transcript.
Retrieving the Transcript
So once Assembly AI has finished processing the transcript either you provide them with a webhook, which I'll demonstrate in other videos, or you go and you look for the transcript using this ID and so for this I'm just going to look for the transcript. So I'm going to go down to my get process transcript ID and this is all covered in the Assembly AI documentation but I've laid it out here in the Bubble API connector. So I'm going to paste the ID into there and then initialize the call.
Analyzing the Transcript Results
And this is where I get back my transcript. So you can see here that my transcript starts with "Hello my name is Bubble, I'm speaker 1" and then someone else says "Hello my name is Emma, I'm speaker 2". But if I scroll down to utterances, I can see that it begins to group them and so I then have in utterance number 1, I have "Hello my name is Bubble, I'm speaker 1" and then Bubble only shows you one example but if I go to raw data ooh it's going to be a long way down, where is it? We then have utterance 2 "Hello my name is Emma, I'm speaker 2".
Conclusion and Next Steps
So part 1, I'm just showing how to get the response back that contains the data in JSON for identifying different speakers. Stay tuned for part 2, I'm going to show you how you can start to process this through the Bubble database and get the different parts of your conversation and display them.
Master Bubble & Launch Your MVP
Embark on your Bubble.io journey with our Free Access, or accelerate your progress with the 90-Day Pass for just $99.
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 500+ 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.
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Frequently Asked Questions
Find answers to common questions about our courses, tutorials & content.
No. Our Beginner Essentials course and AI No-Code Coach are designed for total newcomers. You’ll learn Bubble.io step by step - no coding required.
Simply type your question in plain English, and our AI taps into the entire video library to recommend the exact lessons you need. It’s like having a personal instructor on demand.
- Free Plan: Enjoy unlimited access to the Beginner Essentials course.
- 90-Day Pass: Unlock all 500+ videos and full AI functionality for 90 days. Afterward, you can subscribe at a great rate to keep building and learning.
Our AI No-Code Coach is your first stop. If you need deeper help, consider optional 1:1 coaching for personalized guidance. We also host occasional community events to share tips and celebrate wins together.
After your pass ends, you’re free to continue with a cost-effective subscription that includes ongoing AI No-Code Coach access and any future content updates.
Absolutely. If you don’t see real progress within 30 days of your 90-Day Pass, let us know, and we’ll issue a full refund—no questions asked.