One nice benefit of gaining access to coding brokers resembling Claude Code or Codex is that you could create inner functions tremendous shortly.
Effectively, earlier than coding brokers, you needed to spend weeks, if not months, to create inner tooling that was efficient for you. Now you can do it in a matter of minutes. This has drastically modified the area of inner tooling. Earlier than coding brokers, you’ll sometimes look to buy such tooling, and you’ll at all times have to contemplate whether or not that is actually price it, how a lot time you are actually saving with this tooling in comparison with how a lot you are paying for it, and so forth.
The good factor now’s that you could spin up this tooling so extremely shortly that you do not actually need to make the consideration. Should you imagine such inner tooling may also help you turn into a bit extra environment friendly or assist you to in some other manner, it is best to in all probability begin creating the appliance.
I noticed the necessity for inner tooling the place I hand in a gathering recording audio, and it outputs the particular person talking in every sentence. Usually, if you give audio to a gathering transcription device, it offers you one thing like what you see beneath, the place it identifies every particular person speaker within the recording and labels them as speaker 1, speaker 2, speaker 3, and so forth. That is, after all, superb as a result of it helps you determine which particular person is saying which sentences all through the recording. Nonetheless, what you actually need is to have the identify of who says what within the assembly: not solely nameless speaker labels, however really named speaker labels.
Above, you see an instance of nameless speaker labels, however what you’ll really need is one thing like:
That is the appliance I constructed for myself in only a matter of two hours. And on this article, I am going to focus on why I got here up with the thought and the way I carried out it.

This infographic highlights the principle contents of this text. I am going to focus on why I wanted the speaker recognition app, how we are able to construct inner tooling with Claude Code typically, and the way the small print of how the speaker recognition app works. Picture by ChatGPT.
Why I want speaker labels
I wish to file inner conferences that we’ve got and retailer them for later in order that I can simply search for earlier discussions that we have had within the firm.
Nonetheless, I discovered that the everyday transcription device that I used to be utilizing, Soniox, solely labeled nameless audio system. It is sensible, as a result of if I solely enter single recordings each time, it is unattainable, after all, for the API to know who’s who within the recording.
I then began to look on-line if anybody is definitely providing this service the place you’ve gotten audio samples of every particular person particular person and it could identify the people in every assembly. However I could not discover any good, sturdy tooling on-line, and I made a decision to start out making it myself. That is additionally advantageous as a result of I management the appliance; I can customise it to my actual wants, and I’m certain the information is dealt with appropriately.
If this have been 2019 and I did not have entry to coding brokers, I’d in all probability not be making this utility as a result of it could probably take me round two days to implement this in a strong method, if it could be doable in any respect, given the audio transcription fashions on the time.
Now, nevertheless, this may be achieved in just some hours. And it is extremely correct due to how good the audio fashions are these days. Because of coding brokers, you possibly can implement it in a short time and have it accessible in your machine. It is also doable to run this absolutely on a tool with open-source transcription fashions, that are superb. For instance, on a day-to-day foundation, I exploit a device known as FluidVoice to transcribe what I say to my pc so I haven’t got to kind, which is quite a bit quicker, and to work together with coding brokers.

This picture highlights what the appliance appears like the place I can label completely different audio system and it robotically applies that label to all different assembly recordings that I’ve. So I solely need to label every particular person as soon as. Picture by authpr
How one can construct a speaker recognition app
Now, let’s transfer into how I constructed the app. I had an concept in my thoughts of what the app would appear like and the way it could work. When constructing an app shortly, like an inner device utilizing coding brokers, it is all about attempting to share your imaginative and prescient of what the app will appear like in as detailed a fashion as doable in a single single immediate. This requires you to suppose by means of the whole utility and the completely different choices it is best to make — for instance, which transcription mannequin to make use of, easy methods to label every speaker, and so forth — and it is best to attempt to inform the mannequin beforehand, so it would not need to ask you these questions. Whenever you inform the agent of these choices you are as aligned as doable with it.
So that is what I did, and the approximate immediate I exploit to start out creating the appliance was:
Now, that is fairly an in depth immediate, which I urge you to do too when implementing new options like this. I attempt to cowl as a lot as doable within the immediate in order that I haven’t got to undergo a number of rounds with the mannequin. The mannequin is aware of, for probably the most half, what to implement straight away. Now, I did need to preface some issues to the mannequin after it was implementing: for instance, how I needed the design to look after I label the audio system, which is, in hindsight, one thing I might have described to the mannequin much more clearly. However it’s simple to recollect such issues in hindsight when the mannequin tells you, or if you disagree with one thing the mannequin carried out. It is a lot more durable to find these issues earlier than the mannequin begins implementing.
By now I’ve labeled fairly just a few audio system, and each time I add a brand new assembly recording, if all the audio system have been labeled earlier than, it robotically acknowledges everybody within the recording so I haven’t got to label anybody. If it is a new particular person talking, the app would inform me, “Hey, this can be a new particular person. It’s good to inform me who it’s.” I’d then label them, and the mannequin would know for all future recordings as properly.
How the appliance works
Subsequent, I am going to go into how the appliance works and dive right into a bit extra element about the way it acknowledges the audio system, shops them, and so forth. First, I exploit Soniox to get the nameless speaker transcripts. That is simply because it labored higher than the native mannequin in my expertise. After I’ve the nameless recording, I simply absolutely belief that it is fully right as a result of, normally it’s, and what I then do is have the mannequin discover the timestamps of every distinctive speaker so as to get one recording of every distinctive speaker in that transcription. That is achieved as a result of when Soniox offers you the transcription, it additionally offers you the beginning and finish instances of every sentence every particular person says, so I can simply seize audio samples of distinctive people.
As soon as I’ve this audio pattern, I examine it towards the checklist of audio samples we’ve got from earlier than. That is achieved by embedding the audio, similar to you’ll embed a collection of phrases within the textual content and examine utilizing cosine similarity. If the boldness is excessive — over 80% — we robotically label the speaker, as a result of it is very probably that this can be a speaker we have seen earlier than. If the boldness is decrease, I simply give the audio pattern to the consumer or sort out it myself, so I can label it after which retailer that audio pattern for later. It’s then embedded in order that we are able to simply examine it towards future embedded audio recordings.
That is only a high-level overview of the way it works. It’s simply utilizing embeddings to shortly examine the audio of somebody and to determine if we all know the speaker from beforehand or not.
Conclusion
On this article, I mentioned inner tooling and how one can construct it to save lots of time. Within the pre-LLM period, you would need to spend numerous time really growing such inner tooling, however now it is turn into so low cost to construct it that, in lots of instances, it is price it only for a small productiveness increase, like within the case of this app. It is helpful to me as a result of it permits me to look earlier conferences with larger accuracy.
I then mentioned why I wanted the speaker labels and the way I constructed the app, displaying you the preliminary immediate I had with the agent and discussing some follow-up prompts I had to make use of with the agent to ensure it carried out precisely the product that I needed to implement. I then gave some particulars on how the appliance works by evaluating audio system that we already know utilizing embeddings of the audio. If similarity is excessive, it is very probably that we already know the speaker. If the similarity is decrease, then we must have a human label that speaker and retailer that within the database of identified audio system in order that we’d probably not need to label them sooner or later. It is price realizing that the identical particular person can sound fairly completely different from state of affairs to state of affairs. For instance, based mostly on whether or not they’re speaking into their pc microphone or a headset microphone, whether or not they’re out strolling, and whether or not there’s numerous noise within the background, which might disturb the identified speaker library that you simply create utilizing this utility.
👉 My free eBook and Webinar:
🚀 10x Your Engineering with LLMs (Free 3-Day Electronic mail Course)
📚 Get my free Imaginative and prescient Language Fashions book
💻 My webinar on Imaginative and prescient Language Fashions
👉 Discover me on socials:
💌 Substack















