In this insightful episode, host Kylie Whitehead converses with Dr. Ivan Vulić, a Senior Scientist at PolyAI and a Principal Research Associate at the University of Cambridge. They discuss the development and advantages of 'Pheme', a new, more efficient model for voice generation developed by PolyAI. Unlike existing Text-To-Speech (TTS) models, Pheme is designed to generate more conversational and natural sounding speech, which can be tailored to the unique needs of different businesses and used for brand voices. They also touch on the balance between performance and quality in building conversational systems, and the ethical considerations surrounding voice synthesis. Follow PolyAI on LinkedIn Watch this and other episodes of the Deep Learning pod on YouTube
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Ivanwhat previous TTS models basically did, they were just training, for example, on audio samples from audio books and acted speech, which all sounded very artificial. And then when you're building conversational assistance we need this lifelike natural conversational experience.
KylieHello. Welcome to the Deep Learning Podcast. I'm Kylie Whitehead and I'm joined today by Dr. Ivan Vulej, a Senior Scientist at PolyAI and Principal Research Associate and Royal Society University Research Fellow. at the University of Cambridge. Ivan's published over 150 research papers on NLP, machine learning, and applied linguistics. And Ivan's here today to talk a little bit about his latest paper, which introduces Thiemi, a new speech generation model from PolyAI.
KylieHi Ivan.
IvanHello, hi Kylie.
KylieSo before we get into Thiemi, what it is and how we built it, I'd love to understand why You'd even consider building a speech generation model at this point. I feel like there are loads of really good TTS systems out there already. So why did you feel the need to work on something different?
IvanYeah, because we primarily a voice based company in the first place and then we wanted to build something with our own hands and something that actually Is really good for our own needs and then we tried all these different systems out there Some of them are really great, but and the quality was amazing, but it didn't really fit the bill it didn't really fit our needs completely because often it was it was too slow. So we couldn't really run it in real time with real systems, et cetera. And then we could only work with what was given to us.
IvanSo we didn't have the full control over the system. And we just wanted to build something that is enterprise ready for ourselves in the first place. And then maybe this will also spark more interest in building something on top of just, I don't know, sheer performance quality, something that we could really use in real systems and it's fully controllable. And this is why we actually started that journey. Another reason is also call it academic research curiosity. And we just wanted to build something with our own hands and really understand every little detail of those systems in order to make them fully controllable in design and use later on.
KylieYeah, that makes a lot of sense. And I think one of the things that you discuss in the paper is the way that the research tends to ignore real life applications, like the research is all about making things that sound good. And maybe they perform well for you to show at conferences. Right. But actually when it comes to deploying them they're a little bit more tricky.
IvanYeah, so there is this dichotomy between academia and research. Academia often likes to just, I don't know, create models to put some numbers in boldface, and then you have your paper publication, and then you really don't care if anybody was going to use that. Although more and more industry sponsored and industry oriented research is out there, but Some of the industry research still competes with academic goals and leaderboards. And we just wanted to do something that's really practically useful in practice, useful for us in the first place.
IvanAnd then we will. Well, we're happy to share it with the rest of the world. And yeah, that was one of the reasons. So it's slightly different. So one of the things that we like to do in PolyI is apply the machine learning team in the first place is really to Come up with new research ideas, but having the final application mind, not just the art for the art's sake type of thing, for example. Yeah.
KylieI remember when I first joined poly AI and having this discussion, about the data sets that this stuff gets trained on. I think we were talking about the model, the NLU models at that point. And it being because of the sort of benchmarking and academia, everything gets trained on these same set of. Of data, but it's not actually relevant to the real life application that you would use this technology.
IvanYeah, so so this theme is like maybe it will be like a model series. It actually follows the long journey the Long term goals of poly AI to really build efficient and performance systems. So maybe people know about the convert model, which was a revolution in mini modeling, efficient modeling where everybody was talking about a billion parameter models back in the day and large models, we were trying to create something that fits the mobile device memory and things like that. And then there is a. There are people who actually appreciate that type of work and the bottom line is, yeah.
IvanIf you create these smaller models, efficient models, you basically save money because they're cheaper to run and cheaper to serve all of these things that people in academia or people who have a multimillion dollars to just burn on GPUs don't really care about. But yeah, I know consumers do care about that.
KylieYeah, especially with the organizations that we're working with, I think this kind of technology has been available to the Bank of Americas of the world because they have almost infinite money to spend on this, right? But when you start working with a lot more organizations, especially where, we're facing budget cuts and everything in the last couple of years, it's been quite strenuous in order to actually put this technology in front of people. It needs to be efficient, right? It needs to work. It needs to be accessible in
Ivanthat way. Yeah, a cool thing about this technology is really that, I don't know, maybe not my grandpa, but because he doesn't use a computer, but I don't know, everybody, even without any technical knowledge can just try out the demo or just type something and it will actually run and they can, they might not be able to train the model, but they can use the model. They can. Take it as a black box and just plug it in with something else. It's something like that. And if you have a gigantic model, which is completely obscure, nobody even knows what the model has been trained on, how it works.
IvanYou can't store it anywhere. You can't load it into your memory done. Yeah. You can't really do anything creative with it. And yeah, the story of efficiency is. Is related to product itself, but it's also related to more, I don't know, you can democratization is maybe an obsolete term now in AI, but it's still bringing goods to people if you want to have this black, more socialist I don't know.
DamienYeah. Yeah. So tell me a little bit
Kyliemore about about Femi and why it's different to anything else that's out there and the purpose that it
Ivanserves. Yeah. So that's a good question because there's a wealth of TTS models out there. And it basically as we wrote in the blog post, it does stand on the shoulders of not giants, maybe gigantic models, but so the main thing that we wanted to change was really Yeah efficiency of the models and I can talk, so efficiency has multiple layers. I'm going to talk more about that later on. And also we wanted to make the model more conversational because what previous TTS models basically did, they were just training, for example, on audio samples from audio books and acted speech, which all sounded very artificial.
IvanAnd then when you're building conversational assistance, what poly I does, we need this lifelike natural conversational experience. And this is a very important aspect. And the second aspect was this efficiency thing. And I already touched upon that. So efficiency can mean smaller models, which kind of, it's like parameter efficiency so that you can easily store and load and quickly access all these models. You can talk about data efficiency because you can't really assume that you have. Enormous data sets of audio for every single voice in the world. And if you want to quickly adapt the model, you need to do it quickly.
IvanSo this is this data, or we call it sample efficiency machine learning. And the third aspect, which is also very important is this inference efficiency. So we mentioned it in the paper and in the blog posts also that you can't really talk to a system if the system takes one minute. To respond to each of your questions. And then going back to the conversation nature of it, if it sounds like it's just reading parliamentary proceedings to, I don't know, get baby babies to sleep and things like that. So yeah,
KylieThat's the reason. Yeah, you covered a lot there. Going back to to the experience, to how conversational it feels, right? I always think of this example with one of the poly AI voice assistants. It's for a restaurant and it answers the phone Hello, how can I help? And it sounds like a person. Working in a busy restaurant and I also like to listen to a lot of audio books and I can understand how if you took that, how can I help from a different setting or a different, perhaps had different utterances before after it would sound very different.
KylieHow can you with a model like theming, how do you ensure that it has that right
Ivantone? Yeah, a good thing is that. Because of the, what I just mentioned, data efficiency, it's easily customizable. So we do provide these release checkpoints of the model. And that model has seen some conversational speech. So we actually took some publicly available data that comes from YouTube and podcasts and. And this is conversation by nature, but, and it doesn't cover all the possible prosodies and how people talk, but it covers a lot.
IvanAnd so if you really want to elicit a certain conversation behavior for your own brand, you can just maybe provide minutes or several hours of samples of how the bot should sound like, and then we can start from this general conversation model and then customize it to your own brand needs, and this also comes with different voices. So if you. So the model is a multi speaker model. So it has seen a bunch of voices from all these YouTube podcasts, et cetera, et cetera. But if you want your own brand voice, it's just easy to continue fine tuning. It's this transfer learning paradigm again, which is still very prominent in machine learning.
IvanAnd then we can customize that. So we have this use case in the paper as well, where we actually took a brand voice and synthesized synthetic data, like five, seven, 10 hours of data. And then we. We basically showed, okay, now Fimi can speak in that voice very accurately with very high fidelity. So this, we had so many requirements that we wanted to to really satisfy with Fimi. This is, and this was actually pretty tricky and we always missed one point. And then the final architecture, we reflects all these requirements that we wanted to satisfy as part of the work.
KylieWhen you say trained it on that brand voice, Could you take your voice, for example, and make it, it speak in your
Ivanvoice? Oh, yeah. So we can do all sorts of things. Some of them could have potential problems, but yeah, that's another story on yeah, basically we, we can take hours of YouTube audio or video of a particular person. We can sample it to 16 kilohertz as we do in, in, in the paper. And then fine tune the model. the current checkpoint on that voice and the model will start speaking with that voice. A good thing is when I mentioned the ethical problems, et cetera, there are guard railing tools that actually can tell you, okay, this is syntactic voice.
IvanSo no worries that this is not real human speaking. So there's always the Detection slash mitigation strategy. And yeah, the primary purpose is really to use it for occupational assistance. But Fimi can speak like you or me or anybody who gives us enough voice material to fine tune the model on.
KylieThat's so when, so I was speaking to Pavel about about speech generation a few episodes ago in this podcast and and the first thing that came to my mind when he was talking about this concept was around voice biometrics and the implication that this kind of technology has for voice biometrics, but you're saying that their sort of voice biometric systems will have that safeguarding in place where even if you create a copy of my voice, it will be able to say, no, this is a synthesized voice. This isn't a real,
Ivanyeah. Yeah. So there are dedicated classifiers again, which has captured these subtle nuances. So they might not be fully audible to humans who are not trained. And maybe they capture some really latent parts of the whole signal, but those classifiers work with 99 points, something precision. I shouldn't be too worried.
DamienYeah,
KylieI think that's the scary side, but on the, more exciting side, I guess you, you have a real opportunity to create a brand voice, a brand character. And you can think of applications for that, like an obvious application would be Disney, right, could launch a voice assistant in Mickey Mouse's voice or, and have it say whatever without having to have voice actors or whoever. Recording that
Ivanbeforehand. Yeah so I think there are more applications that we even anticipate right now. And yeah, I didn't really think about Mickey Mouse voices, but maybe some brands would actually like that. So this is something again, going all the way to the beginning of our chat. When we discussed why building this in house, it's also because with, without third party providers, or if we actually do it ourselves, that we can actually choose which type of voice we want, and we can build stuff for virtually any voice we want.
IvanAnd with third party providers, we are just limited to the voices they provide. We can ask, can you. If we have N voices, give us N plus first voice, but then it takes time to build, et cetera, et cetera. And this way we just say, yeah, okay, we want Fimi to speak like Donald the duck. No problem. We're going to just get some samples of Donald the duck and we're done.
DamienYeah. I
Kyliethink, when you call up, we speak to a lot of IVRs now, it's just, it's quite a generic, often robotic voice. And I think that the thought given to brand often happens. At the side where you're selling the customer something, but when it comes to sort of customer service after the fact it's a very different brand experience. And I think this sort of technology enables brands to create a really consistent voice and feel across all of their customer touch points, which is really
Ivanexciting. Yeah, so this is now touching on the conversational nature of DTS that we wanted to really instill into the feeling model because we felt like trying out many different DTS systems before that a lot of them sound like Terminator voices, basically, and I was scared of some of the voices but to be honest, in the last year or so, the whole text to speech research field has seen some tremendous improvements. So this also inspired us, okay, now might be the right time for us to step in and do something ourselves.
IvanBecause we collected now a lot of experience trying out different things. We read so many papers about a subject and then we felt comfortable enough to dig deeper into the whole construction process. Yeah.
KylieOkay, cool. Well, Ivan, maybe you could show us some examples of what you've been able to do with this
Ivanmodel. Yeah, so I'm happy to do that. So yeah, we have a page with some demo samples. I'll need to slightly explain what actually we have out here. Yeah, the details are in the paper, but one, one really I would even that's a cute feature of this model is basically that you can prompt it. So we've heard about prompts in the context of large language models. And here we can actually do a generation. Of speech in a voice that has been previously unseen by the model.
IvanIf we just provide a very short prompt of a couple of seconds, and then the model will actually generate a speech from text in that same voice and how that works, you can find out, find it out in the paper, but here is just a short demo. So first this is the prompt that we give to the model. Let's just
AI 2say, in her own words, once I sat down and watched it, I never moved. I was enthralled by it.
IvanSo this is the only audio sample that we have from this particular speaker and this particular voice. And then what we want to say is the reference text here and she told me the next time she went back, she would take me blah, blah, blah. And so we are generating that part just conditioned on the prompt audio. And then we provide three different variants of the model. The number in the parentheses means that this is the number of parameters. So the larger model is slightly better as expected. You're always afraid of performance and quality, but this is a very small model in terms of standard neural architecture So i'm just going to play this variant here, which is the I think the best performing model alda And yeah, this is and she
AI 2told me the next time she went back should take me with her and I waited Of course, like I said 13 years.
IvanYeah, so again to just repeat so it was a one shot generation. So we just heard the or the model just heard only a couple of seconds of audio of that speaker. It has never seen that speaker at training, et cetera. And it managed to generate speech from given text with very high fidelity. And then we have a bunch of similar examples here. So I'm just going to play another one. Okay,
AIjust so it's I think there's a range of risks, but generally speaking there's going to be a steady increase in the floor of the skill level as these AI technologies diffuse.
IvanOkay, so here that's the problem. So
DamienThat's a real
Kylieperson talking a bit of audio recording, and that's what you're using then to have theme copy.
IvanYeah. That's a real person extracted from either YouTube or some podcasts and this is the prompt and now we're going to generate a sentence. Which is in the reference text, and it's going to sound like this.
AIThat is, there will be more and more capabilities available to people at the bottom of the scale. That is individuals as well as people with more access to computing power, money and data at the higher end.
IvanYes, so a well trained ear might actually hear some differences between the two voices but then there are again measures of speaker similarity and one of our goals was really to increase the score on speaker similarity and I think average or not so well trained ears might not even spot the difference and Yeah,
KylieI think this is fascinating. And this means that yeah, you can generate these prompts from scratch very quickly, I'm assuming.
IvanOh, yeah. So that's the efficiency aspect also. Yeah, it just takes. Less than a second for short audios. This is one of the things that we also discuss in the work. So one of the primary driving forces of our work was really to reduce what we call real time factors. So that means that we can process longer texts. in as little time as possible, because this is one of the key or killer things for the final application. So we again, go back to the whole design of conversational assistance and all those systems, you might actually get latency from automatic speech recognition.
IvanAnd if you have a large language model, so if you've played with GPT 4, it takes some seconds to actually get your text out. So if your DTS is very slow, You will never end in your processing thing. And we wanted to really cut down the time needed for processing for text to speech down as much as possible so that we can actually save some time for large language models to generate things. And yeah, so we achieved a. A pretty, pretty decent speed up. I would say how much was it like 15 times quicker than some other autoregressive models which really gets speed from, I don't know, having to do, having to wait for 30 seconds for a five to six seconds sample to just doing it in half a second or something like that.
KylieWow. That's one of the most frustrating things when you speak to an automated system as well as a consumer is when there's that, there is that latency. You really don't know if it's still listening out for something. If you're expected to add more, it makes it very strange of the user to know. What's expected of you. Ivan, I feel like I've heard some examples of versions of this around the office with various coworkers. It seems like you guys might've had some fun testing this out and trying variations of it over the past month.
IvanYeah. We can train brand voices with people from the company which might be quite fun. And then I know. We could, this is something that actually happened to me a long time ago when I was playing with those DDS systems, and it sounds really weird when you talk to yourself, so you're both the agent and the system at the same time. So this is possible with this technology, more or less.
KylieYes. Well, maybe we'll have to see about doing some kind of variation on this podcast using this technology. I think that could be some really good fun that we could have there. This has been great, Yvonne. Thank you so much for taking the time to explain this to us a little bit. As Yvonne mentioned, you can find out more about BMI on our website. If you navigate to our blog and go to our latest blog post, you'll find it there. And from that you can go into, read the full paper and visit the samples that Ivan just shared. And if you like this episode, you can go back to episode 13 where I spoke to poll AI's head of machine learning.
KyliePow, who co-authored this paper with Ivan. Where we speak a bit more generally about. Speech generation. but until next time, thanks for joining us. Take care. Bye.
Three years ago, Simplyhealth's PolyAI deployment was only resolving simple FAQs over the phone. Today, they run voice, in-app, email, chat, and WhatsApp conversations on the platform. Nikola Mrkšić talks with Paul...
An agent that gets better every day compounds into a very different agent within months. That's the idea behind Wren, PolyAI's new release: an agent whose job is to make your other agents better. Some of what it finds...
Companies are pouring money into AI, but not everyone is getting the returns. Ian Jacobs, VP and Lead Analyst at Opus Research, thinks he knows why. In this episode, your host Nikola Mrkšić sits down with Ian to work...
When PolyAI built its Builder MCP, one client helped shape it: Vixxo Facility Solutions, one of the largest facilities providers in the US. In this episode, guest host Damian Sasso talks with Vixxo's CTO Derek Neighbors...
PolyAI just launched Dialog-RSN-1, its first audio-native model, and your host Nikola Mrkšić sat down with its builder, Matt Henderson, to unpack why it’s a game-changer for building voice agents. Most voice AI either...