Researchers Develop Automated Speech Writer
How machines can automatically write a presentation based on parameters like topic and audience.
Join the DZone community and get the full member experience.Join For Free
giving a speech is one of the more nerve wracking things you can do. i’ve written previously about some new augmented glasses that can help you with your delivery, but you still need some good material to begin with.
automated speech writing
whilst there have been millions of speeches delivered down the years, great ones are often pretty rare. they also tend to share many of the same characteristics, whether in format, argument and even use of words.
the researchers followed a similar route as that taken by the team behind the robot jazz player mentioned earlier. the machine was trained on around 4,000 political speeches delivered over 53 different congressional floor debates.
collectively, the speeches contained over 1 million words, with the researchers tagging each speech according to who was making it, whether they were for or against the topic being debated and their political leaning.
how it was done
the researchers first tagged each word for whether it was a noun, verb, adjective and so on. they then performed a probability analysis to determine the likelihood of particular words appearing before other words.
this then formed the basis of the automation process, with the machine informed of the kind of speech required, and who it’s required for.
the machine will go word by word through the speech and create a probalistic text, based both on the likelihood of words being used together and on the likelihood that a particular topic will appear in a speech.
it sounds far fetched, but in early tests the results are actually quite good, as you can see from a sample speech generated for a ‘democratic speech’.
“mr. speaker, for years, honest but unfortunate consumers have had the ability to plead their case to come under bankruptcy protection and have their reasonable and valid debts discharged. the way the system is supposed to work, the bankruptcy court evaluates various factors including income, assets and debt to determine what debts can be paid and how consumers can get back on their feet. stand up for growth and opportunity. pass this legislation.”
it’s a pretty impressive effort, and i’m sure that the algorithm can improve significantly with more training. we’ve already seen systems make impressive strides with things like automated reporting , but this is more impressive given the complexities involved in speech.
“in particular, the grammatical correctness and the sentence transitions of most speeches were very good,” the team say.
they are cautious about the short/medium term prospects for the algorithm however, and don’t expect speech writers to be in jeopardy just yet.
“despite the good results it is very unlikely that these methods will be actually used to generate speeches for politicians,” they say.
the code is freely available on github , and i very much encourage you to try it out and offer your feedback to the team on how it could be improved.
Published at DZone with permission of Adi Gaskell, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.