# \[FREE\] SpeechGPT: Example project mixing OpenAI GPT and Microsoft Azure Speech Services

**URL:** <https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131>\
**Category:** Showcase\
**Tags:** artificial-intellige, unreal-engine, CPP, Blueprint\
**Created:** [February 5, 2023, 2:20pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131 "2023-02-05T14:20:32Z")\
**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 5, 2023, 2:20pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/1 "2023-02-05T14:20:32Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/8/0382a1433932ec896d483a627c1ed5dbd6dc8037.png)

Example Project that uses both OpenAI GPT and Microsoft Azure Speech Services

## Links

- Project Repository: [UESpeechGPT (github.com)](https://github.com/lucoiso/UESpeechGPT)
- HttpGPT Plugin: [[FREE] HttpGPT: GPT Integration (ChatGPT and DALL-E)](https://forums.unrealengine.com/t/free-httpgpt-integrate-chatgpt-in-the-engine-via-asynchronous-tasks-rest/765168)
- AzSpeech Plugin: [https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/)

## Requirements

- Visual Studio 2019 or 2022 with the Module: Game Development with C++
- Unreal Engine 5.1
- Git with Git LFS

## Installation

- Run these commands in Git Bash:

```auto
git clone https://github.com/lucoiso/UESpeechGPT.git
cd UESpeechGPT
git submodule update --init --recursive

```

* * *

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:** [February 5, 2023, 6:50pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/2 "2023-02-05T18:50:40Z")

</div>

## New Additions:

- Speech to Text
- Multiple Languages
- Language Identification
- Icons

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/b/4eb361a4c0c0dda84ae5f52af9202cee5c140170.png)

Check it out on my [github](https://github.com/lucoiso/UESpeechGPT)! : )

---

<div class="post-metadata">

**Author:** ![balidonk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/balidonk/32/619334_2.png) [@balidonk](https://forums.unrealengine.com/u/balidonk)\
**Post date:** [February 6, 2023, 2:33pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/3 "2023-02-06T14:33:50Z")

</div>

REALLY COOL 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:** [February 7, 2023, 12:18am UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/4 "2023-02-07T00:18:20Z")

</div>

Created a new post for [HttpGPT](https://forums.unrealengine.com/t/free-httpgpt-basic-plugin-to-send-requests-to-openais-gpt-3/765168)! : )

---

<div class="post-metadata">

**Author:** ![Anonymous\_2d9d005babb4997f43a6864b8d77d6fd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_2d9d005babb4997f43a6864b8d77d6fd](https://forums.unrealengine.com/u/Anonymous_2d9d005babb4997f43a6864b8d77d6fd)\
**Post date:** [February 27, 2023, 12:29am UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/5 "2023-02-27T00:29:56Z")

</div>

Hello, i have to say its really great.I download the zip from githob.However,when i generate the project,it shows the message ERROR: Expecting to find a type to be declared in a target rules named ‘SpeechGPTTarget’. This type must derive from the ‘TargetRules’ type defined by Unreal Build Tool.Is there anything i need to set up for the project?

---

<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 2, 2023, 3:33pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/6 "2023-03-02T15:33:32Z")

</div>

Hi! Have you downloaded the project from the Release page? [SpeechGPT Releases (github.com)](https://github.com/lucoiso/UESpeechGPT/releases)

This button below doesn’t work well with Unreal projects : /  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/e/51e7eae60409a53f68b917911176963cc7da0dbe.png)

Use this link to download the Project: [Releases · lucoiso/UESpeechGPT (github.com)](https://github.com/lucoiso/UESpeechGPT/releases)

---

<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 2, 2023, 3:34pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/7 "2023-03-02T15:34:04Z")

</div>

# SpeechGPT v1.1.0

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/0/6f04bc75dfb35026985af3942f00fc686b0c92bb.png)

- Release: [SpeechGPT v1.1.0 (github.com)](https://github.com/lucoiso/UESpeechGPT/releases/tag/v1.1.0)
- Pull Request: v1.1.0 by @lucoiso in [v1.1.0 by lucoiso · Pull Request #1 · lucoiso/UESpeechGPT · GitHub](https://github.com/lucoiso/UESpeechGPT/pull/1)

## What’s Changed

- Now using the new Chat API
- More settings, delegates & logs
- Chat history
- New options

**Full Changelog** : [Comparing v1.0.0...v1.1.0 · lucoiso/UESpeechGPT · GitHub](https://github.com/lucoiso/UESpeechGPT/compare/v1.0.0...v1.1.0)

---

<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 15, 2023, 8:37pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/9 "2023-03-15T20:37:16Z")

</div>

# SpeechGPT v1.1.1

- Release: [SpeechGPT v1.1.1 (github.com)](https://github.com/lucoiso/UESpeechGPT/releases/tag/v1.1.1)
- Pull Request: [v1.1.1 by lucoiso · Pull Request #2 · lucoiso/UESpeechGPT · GitHub](https://github.com/lucoiso/UESpeechGPT/pull/2)

# Changes

## Update [AzSpeech](https://forums.unrealengine.com/t/free-azspeech-plugin-text-to-speech-speech-to-text-and-more-with-microsoft-azure-cognitive-services/495394) to [v1.5.0](https://github.com/lucoiso/UEAzSpeech/releases/tag/v1.5.0)

- Fix error logging
- Add new setting to enable usage of private endpoints
- Set audio compression to not occur in transient sound waves
- Fix audio compression occurring more than one time
- Fix audio compression being called outside audio thread
- Separate tasks signals to avoid the completion delegate sending wrong data (this fixes the ‘sound wave with 0 duration…’ issue)
- Set to only broadcasts be called in game thread
- Set the runnable threads to try lock on exit to avoid crashes after End PIE
- Add comments in some functions
- Move Viseme Data to a separate header
- Create new structure: Animation Data
- Added new functions to extract Animation JSON Data from Viseme Data

## Update [HttpGPT](https://forums.unrealengine.com/t/free-httpgpt-basic-plugin-to-send-requests-to-openais-gpt/765168) to [v1.2.0](https://github.com/lucoiso/UEHttpGPT/releases/tag/v1.2.0)

- Create new structures: Options & Error
- Set all tasks to receive an options param
- Set settings to contain a default options object
- Set the response to contain the error object if bSuccess is false
- Transform the role param in an Enumeration
- Set the message body to use the options or the default options if no one was given to the task. Also allowing the usage of other models.
- Set the plugin to contains 2 functions to manage an entire chat or send a single message.

---

<div class="post-metadata">

**Author:** ![CatalinFuca](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CatalinFuca](https://forums.unrealengine.com/u/CatalinFuca)\
**Post date:** [March 18, 2023, 8:15pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/10 "2023-03-18T20:15:47Z")

</div>

I get the error “Last Status: request not sent” for the 1.1.1 SpeechGPT example project when trying to sent prompts. What am I doing wrong?

---

<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 20, 2023, 1:23am UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/11 "2023-03-20T01:23:24Z")

</div>

# SpeechGPT v1.2.0

- Release: [SpeechGPT v1.2.0 (github.com)](https://github.com/lucoiso/UESpeechGPT/releases/tag/v1.2.0)
- Pull Request: [v1.2.0 by lucoiso · Pull Request #3 · lucoiso/UESpeechGPT · GitHub](https://github.com/lucoiso/UESpeechGPT/pull/3)

## Changes

- Add settings
- Add system context
- Add support for streamed response

## Modules Updated

- AzSpeech: [Release AzSpeech v1.6.0 · lucoiso/UEAzSpeech · GitHub](https://github.com/lucoiso/UEAzSpeech/releases/tag/v1.6.0)
- HttpGPT: [Release HttpGPT v1.3.0 · lucoiso/UEHttpGPT · GitHub](https://github.com/lucoiso/UEHttpGPT/releases/tag/v1.3.0)

## Screenshots

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/8/0382a1433932ec896d483a627c1ed5dbd6dc8037.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 20, 2023, 6:23pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/12 "2023-03-20T18:23:46Z")

</div>

# SpeechGPT v1.2.1

- Release: [SpeechGPT v1.2.1 (github.com)](https://github.com/lucoiso/UESpeechGPT/releases/tag/v1.2.1)
- Pull Request: [v1.2.1 by lucoiso · Pull Request #4 · lucoiso/UESpeechGPT (github.com)](https://github.com/lucoiso/UESpeechGPT/pull/4)

## Changes

- HttpGPT Update: [HttpGPT v1.4.2 Latest (github.com)](https://github.com/lucoiso/UEHttpGPT/releases/tag/v1.4.2)

## Now including the new Editor Tool: HttpGPT Chat

 ![Editor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/e/f3e0ec392a410bc3faf897516ae734f7e8c697f7.png)

---

<div class="post-metadata">

**Author:** ![richlee0314](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@richlee0314](https://forums.unrealengine.com/u/richlee0314)\
**Post date:** [March 22, 2023, 10:57am UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/13 "2023-03-22T10:57:38Z")

</div>

Hellow. I have download the latest V1.2.1 to setup, but there is still some problem. Could you help me how to fix it.

Running C:/UE\_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project=“C:/Users/Render\_2/UESpeechGPT/SpeechGPT.uproject” -game -rocket -progress -log=“C:\Users\Render\_2\UESpeechGPT/Saved/Logs/UnrealVersionSelector-2023.03.22-18.06.20.log”  
Log file: C:\Users\Render\_2\UESpeechGPT\Saved\Logs\UnrealVersionSelector-2023.03.22-18.06.20.log  
Log file: C:\Users\Render\_2\AppData\Local\UnrealBuildTool\Log\_GPF.txt

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.  
See the log file for detailed information

Discovering modules, targets and source code for project…  
C:\Users\Render\_2\UESpeechGPT\Source\SpeechGPT.Target.cs(14,3): error CS0103: The name ‘IncludeOrderVersion’ does not exist in the current context  
C:\Users\Render\_2\UESpeechGPT\Source\SpeechGPT.Target.cs(14,25): error CS0103: The name ‘EngineIncludeOrderVersion’ does not exist in the current context  
C:\Users\Render\_2\UESpeechGPT\Source\SpeechGPTEditor.Target.cs(14,3): error CS0103: The name ‘IncludeOrderVersion’ does not exist in the current context  
C:\Users\Render\_2\UESpeechGPT\Source\SpeechGPTEditor.Target.cs(14,25): error CS0103: The name ‘EngineIncludeOrderVersion’ does not exist in the current context  
ERROR: Expecting to find a type to be declared in a target rules named ‘SpeechGPTTarget’. This type must derive from the ‘TargetRules’ type defined by Unreal Build Tool.

---

<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 22, 2023, 2:30pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/14 "2023-03-22T14:30:25Z")

</div>

Hi! : )

The errors are related to **IncludeOrderVersion** which was added in UE5.1.

This project was built on UE5.1, so it won’t works well on UE5.0. Even if remove this line from the Target.build.cs, the assets will not be loaded 'cause was created in a newer version of the engine. : /

---

<div class="post-metadata">

**Author:** ![richlee0314](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@richlee0314](https://forums.unrealengine.com/u/richlee0314)\
**Post date:** [March 22, 2023, 2:48pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/15 "2023-03-22T14:48:45Z")

</div>

thanks. I will try again.

---

<div class="post-metadata">

**Author:** ![griffinanimator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@griffinanimator](https://forums.unrealengine.com/u/griffinanimator)\
**Post date:** [March 29, 2023, 4:19pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/17 "2023-03-29T16:19:38Z")

</div>

I am more of an artist than a programmer and have run into some issues that you may be able to help with.

I downloaded the plugin through the Unreal marketplace and the Speech GPT example project through git. On opening I was asked to rebuild plugins. This failed on the GPT plugin. I made a new project and copied over the content and plugins. This allowed me to open the project and for the most part everything is working.  
In the UI I have some errors with missing variables. I tried recreating the nodes but those variables don’t exist.  
I am running UE 5.1

---

<div class="post-metadata">

**Author:** ![griffinanimator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@griffinanimator](https://forums.unrealengine.com/u/griffinanimator)\
**Post date:** [March 29, 2023, 5:36pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/18 "2023-03-29T17:36:59Z")

</div>

I sorted this out by using Mak AZSpeechRecognition options

---

<div class="post-metadata">

**Author:** ![aacloudguy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aacloudguy](https://forums.unrealengine.com/u/aacloudguy)\
**Post date:** [April 2, 2023, 3:05pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/19 "2023-04-02T15:05:58Z")

</div>

I think I see the issue with AzSpeech plugin 1.6.5 now. I am using the Marketplace version, and deleted the version inside the Plugins folder to make that work properly. Once the plugin is enabled in Settings and the keys are set, I had to refresh the nodes, which removed many of the links. However, because the variables are now set in the Settings, we don’t need them set in the Blueprint anymore, so they work anyway, and the whole level just works. So, the application is working again, as expected, in a way that is unexpected.

Next stop is to try my customizations. This is such a great set of plugins!

---

<div class="post-metadata">

**Author:** ![aacloudguy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aacloudguy](https://forums.unrealengine.com/u/aacloudguy)\
**Post date:** [April 3, 2023, 7:30am UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/20 "2023-04-03T07:30:02Z")

</div>

Apparently the latest AzSpeech plugin update (1.6.5) has changed the parameters for AzSpeechSettingsOptions, and the Blueprint graphs no longer work. I’m not enough of a developer to fix that on my own. It took away pins for Profanity Filter, Private Endpoint, Region ID, and Subscription Key. When you Refresh Node, the node that is left doesn’t have any useful options, just objects that I cannot find any way to leverage.  
This is such a great and useful plugin and demo. I can’t thank you enough for it - it’s been very educational for me. I’m sorry if I don’t understand the details of making it work, but I am trying.

---

<div class="post-metadata">

**Author:** ![VRX\_digital](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VRX\_digital](https://forums.unrealengine.com/u/VRX_digital)\
**Post date:** [April 3, 2023, 9:52am UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/21 "2023-04-03T09:52:14Z")

</div>

Hi. I can not use this chat, cause I have this error message:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/4/ea4e9a539122ed5b462a09772d84184ead222ff6.png)  
Any advice?

---

<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 13, 2023, 8:41pm UTC](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131/22 "2023-04-13T20:41:56Z")

</div>

Hi! Recently updated the .zip file in the latest release: [SpeechGPT v1.2.1 Latest (github.com)](https://github.com/lucoiso/UESpeechGPT/releases/tag/v1.2.1)

# SpeechGPT v1.2.1

## Including the new Editor Tool: HttpGPT Chat

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/1/5e1c223612fca37b6f88593054d58e4bca621260.png)

## Including the new Editor Tool: HttpGPT Image Generator

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/1/e11af044837b93b9f41d4233dd12060514696758.jpeg)

[Next page](https://forums.unrealengine.com/t/free-speechgpt-example-project-mixing-openai-gpt-and-microsoft-azure-speech-services/764131.md?page=2)
