# \[FREE\] AzSpeech plugin: Text-to-Speech, Speech-to-Text and more with Microsoft Azure Cognitive Services

**URL:** <https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394>\
**Category:** UE Marketplace\
**Tags:** voice, unreal-engine, UE5-0, marketplace, Plugins, UE4, fab\
**Created:** [February 7, 2022, 6:33pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394 "2022-02-07T18:33:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [February 7, 2022, 6:33pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/1 "2022-02-07T18:33:18Z")

</div>

![Banner1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/8/6689c0d15253ed5d97e08b54577b838e198fdd3d.png)

An Unreal Engine plugin that integrates Azure Speech Cognitive Services into the Engine by adding functions to perform recognition and synthesis via asynchronous tasks.

## Editor Tool

AzSpeech also includes a new Editor Tool to generate audios as USoundWaves directly in the Engine:

 ![Tool](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/b/4ebdc318c44d2b17c2931dba5e3dea0d6042e6b6.jpeg)

## Links

- [Documentation](https://github.com/lucoiso/UEAzSpeech/wiki)
- [UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/azspeech-async-text-to-voice-and-voice-to-text)
- [Github Repository](https://github.com/lucoiso/UEAzSpeech)
- [Microsoft Documentation](https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/)

* * *

Support me: [Sponsor @lucoiso on GitHub Sponsors](https://github.com/sponsors/lucoiso) ❤

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [March 8, 2022, 7:07pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/3 "2022-03-08T19:07:01Z")

</div>

Plugin published on Unreal Marketplace! 🤗🎉🎊

Download: [AzSpeech - Async Text-to-Voice and Voice-to-Text in Code Plugins - UE Marketplace (unrealengine.com)](https://www.unrealengine.com/marketplace/en-US/product/azspeech-async-text-to-voice-and-voice-to-text)

---

<div class="post-metadata">

**Author:** ![UnrealFreak100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealFreak100](https://forums.unrealengine.com/u/UnrealFreak100)\
**Post date:** [March 9, 2022, 8:08am UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/4 "2022-03-09T08:08:43Z")

</div>

Any tutorial or even a detailed document on Speech to Text using this plugin is helpful and appreciated! Thanks for the contribution!

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [March 11, 2022, 5:28pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/5 "2022-03-11T17:28:09Z")

</div>

Thanks for the feedback, I’ll get to work on it! : )

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [March 11, 2022, 5:30pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/6 "2022-03-11T17:30:21Z")

</div>

**Added a new function: Text to WAV!**

This new function is capable to save a text into a .wav audio file inside the specified location/path.

Look at the demo video:

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/d/9ed2f7cdc4ac2657e79137ac301a181fcb53dd42.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/d/9ed2f7cdc4ac2657e79137ac301a181fcb53dd42.mp4)

Already on UE Marketplace! : )

---

<div class="post-metadata">

**Author:** ![UnrealFreak100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealFreak100](https://forums.unrealengine.com/u/UnrealFreak100)\
**Post date:** [March 12, 2022, 4:23am UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/7 "2022-03-12T04:23:06Z")

</div>

Is there a possibility to play the audio async inside the game?  
Also can we get sound wav file out from the node?

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [March 14, 2022, 7:51pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/9 "2022-03-14T19:51:13Z")

</div>

Hey! : )  
What’s going on?  
This function automatically uses the default microphone from Windows settings.

Are you using the function via blueprint or C++?  
And check your API Access Key from your Azure portal:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/1/911a7f576310a283f76378fc2bb71f84ad7e8ad5.png)

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [March 14, 2022, 7:58pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/10 "2022-03-14T19:58:57Z")

</div>

Hey! : )  
Not with this plugin, but Unreal Engine provides some classes that allow you to get a file from your computer.

> ⚠ **Only in Editor**
> 
> * * *
> 
> I created an example via C++ where I used a Sound Factory to create a USoundWave at runtime:
> 
> > ```auto
> > USoundFactory* NewFactory = NewObject<USoundFactory>(this, TEXT("Sound Factory"));
> > 
> > bool bOperationCanceled;
> > UObject* MyRuntimeObject = NewFactory->FactoryCreateFile(USoundWave::StaticClass(), this, "RuntimeAudio", 
> > EObjectFlags::RF_NoFlags, TEXT("D:\\PC\\Music\\Captured Audios\\Test.wav"), 
> > TEXT(""), nullptr, bOperationCanceled);
> > 
> > USoundWave* MyRuntimeAudio = Cast<USoundWave>(MyRuntimeObject);
> > if (IsValid(MyRuntimeAudio))
> > {
> > AudioCompEx->SetSound(MyRuntimeAudio);
> > AudioCompEx->Play();
> > }
> > 
> > ```
> 
> Obs.: AudioCompEx is a UAudioComponent;  
> Obs. 2: Add “AudioEditor” module in your Build.cs to enable USoundFactory class
> 
> The result:
> 
> With this, you can load a file and play in a determined location on level, apply attenuation, etc, via your Audio Component/Sound Wave Component

* * *

> ⚠ **The “AudioEditor” module only works in the Editor. : (**
> 
> There is a plugin that does this job: [gtreshchev/RuntimeAudioImporter: Runtime Audio Importer plugin for Unreal Engine. Importing audio of various formats at runtime. (github.com)](https://github.com/gtreshchev/RuntimeAudioImporter)

---

<div class="post-metadata">

**Author:** ![KILSU77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KILSU77](https://forums.unrealengine.com/u/KILSU77)\
**Post date:** [March 15, 2022, 5:31am UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/12 "2022-03-15T05:31:40Z")

</div>

I’m sorry… that was my fault, i did test voice to text  
‘LanguageID = ko-KR’ setting, it’s dosen’t work, but ‘LanguegeId = en-US’ setting, it’s work very well.

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [April 5, 2022, 4:35pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/13 "2022-04-05T16:35:07Z")

</div>

Working with official UE5 released version! 🥳

---

<div class="post-metadata">

**Author:** ![4TC0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@4TC0](https://forums.unrealengine.com/u/4TC0)\
**Post date:** [April 9, 2022, 1:16pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/14 "2022-04-09T13:16:19Z")

</div>

Hello!

During Speech to Text process, I would like to set a Push to talk button and recieve a recognized string only after releasing the key, granting that my full phrase was parsed, not after a period of time without audio. Is there a way to do this?  
Also, with my language (pt-BR), the recognized string returns a character encoding that is nos correct. The recognized string returns “Ã©” instead of “é”, “Ã¡” instead of “á”, etc. Is there a way to change this?

Thanks!!

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [April 9, 2022, 4:42pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/15 "2022-04-09T16:42:39Z")

</div>

Released a fix to this:  
[Release AzSpeech v2.1.1 · lucoiso/UEAzSpeech (github.com)](https://github.com/lucoiso/UEAzSpeech/releases/tag/v2.1.1)

This update will be on the Marketplace soon

* * *

Solution:

1. Changed the string conversion from wchar\_t\* to UTF8\_TO\_TCHAR(STRING.c\_str())

---

<div class="post-metadata">

**Author:** ![Noyag777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Noyag777](https://forums.unrealengine.com/u/Noyag777)\
**Post date:** [April 18, 2022, 10:40pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/16 "2022-04-18T22:40:57Z")

</div>

Great plugin. Would be nice to have SSML supported and I am trying to figure out how to abort some sound. Can’t figure out the location of the ‘default audio component’ so far. Is it at the Game Instance? Or at the Level Blueprint? Or at the character that speaks audio?

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [April 19, 2022, 3:31pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/17 "2022-04-19T15:31:52Z")

</div>

Hello @Noyag777!

This plugins uses the default output/input audio devices from Windows (OS) Settings, at this moment is not possible to change this with this plugin.

But with the Text-To-WAV file, you can save a speech into a .WAV file and stream it to a USoundWave to use inside a Audio Component. : )

* * *

_Maybe this plugin could help you to stream a .WAV into a UAudioComponent/USoundWave: [gtreshchev/RuntimeAudioImporter: Runtime Audio Importer plugin for Unreal Engine. Importing audio of various formats at runtime. (github.com) 4](https://github.com/gtreshchev/RuntimeAudioImporter)_

---

<div class="post-metadata">

**Author:** ![Noyag777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Noyag777](https://forums.unrealengine.com/u/Noyag777)\
**Post date:** [April 19, 2022, 9:37pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/18 "2022-04-19T21:37:42Z")

</div>

> This plugins uses the default output/input audio devices from Windows (OS) Settings

That’s what I was afraid of indeed.

> _Maybe this plugin could help you to stream a .WAV into a UAudioComponent/USoundWave_

Aah, that’s great indeed. I was already trying to figure out if there was a way to do that. Thanks for the link!

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [April 20, 2022, 2:38am UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/19 "2022-04-20T02:38:53Z")

</div>

**Some upcoming features:**

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/2/a427f13160fc801d6656d2d4739b2a09d0d5e5f5.png)

I’ve committed this update to a separate branch ([upcoming-test](https://github.com/lucoiso/UEAzSpeech/tree/upcoming-test)) and will release it when I think it’s fully functional and bug free.

**But if you want to test these features, feel free to use it and give me feedback! : )**

> **[GitHub - lucoiso/UEAzSpeech at upcoming-test](https://github.com/lucoiso/UEAzSpeech/tree/upcoming-test)**
>
> upcoming-test

* * *

**Please note that these features are in testing, some things may change until the release date.**

---

<div class="post-metadata">

**Author:** ![Engineering\_Visions](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/engineering_visions/32/470310_2.png) [@Engineering\_Visions](https://forums.unrealengine.com/u/Engineering_Visions)\
**Post date:** [April 20, 2022, 4:36am UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/20 "2022-04-20T04:36:31Z")

</div>

Does this technology work with voice commands? I want to use it like Siri: “Hey Unreal, set the weather to thunder and rain.”

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [April 20, 2022, 3:19pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/21 "2022-04-20T15:19:11Z")

</div>

Doesn’t support voice commands by itself but there’s some functions that convert your **speech into a string** _(VoiceToTextAsync)_ and convert a **string into speech** _(TextToVoiceAsync and the upcoming TextToStreamAsync)_ that you can use to to construct this logic. 👀

For example: the VoiceToTextAsync returns a string of your recognized speech that you can use inside a comparing logic, etc.

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [April 20, 2022, 7:50pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/22 "2022-04-20T19:50:03Z")

</div>

**New features released:** 🥳

**Marketplace:** [AzSpeech - Text and Voice in Code Plugins - UE Marketplace (unrealengine.com)](https://unrealengine.com/marketplace/en-US/product/azspeech-async-text-to-voice-and-voice-to-text)  
**Github:** [Release AzSpeech v3.0 · lucoiso/UEAzSpeech (github.com)](https://github.com/lucoiso/UEAzSpeech/releases/tag/V3.0)

* * *

 ![ainaaaasss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/9/f79d2ba36985c9c8dbe2f7be58c0f806b8ddd180.jpeg)

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [April 27, 2022, 1:44pm UTC](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394/23 "2022-04-27T13:44:24Z")

</div>

## A short example:

> **Voice to Text blueprint:**
> 
> ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/8/58888b2474c4c9c576bf6e50f2b4dde58b9fa48a.png)
> 
> _When the key M is pressed, Azure will listen to your default microphone (from Windows OS settings) and print the recognized speech as a string in your screen._

> **Getting APIAccess Key and Region:** [lucoiso/UEAzSpeech (github.com)](https://github.com/lucoiso/UEAzSpeech#how-to-get-the-speech-service-api-access-key-and-region-id)
> 
> ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/1/911a7f576310a283f76378fc2bb71f84ad7e8ad5.png)

* * *

More informations: [UEAzSpeech/README.md at main · lucoiso/UEAzSpeech (github.com)](https://github.com/lucoiso/UEAzSpeech/blob/main/README.md)

[Next page](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394.md?page=2)
