Giter Site home page Giter Site logo

mapluisch / openai-text-to-speech-for-unity Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 8.0 2.05 MB

Implementation of OpenAI's Text-To-Speech in Unity. Synthesize any text and play it via any AudioSource.

License: MIT License

C# 100.00%
openai openai-tts text-to-speech unity unity-ai unity3d

openai-text-to-speech-for-unity's Introduction

Hi, I'm Martin

  • ๐ŸŽ“ I'm currently pursuing my Ph.D. in Computer Science @ย TU Darmstadt / BRSU
  • ๐Ÿ”ฌ My Ph.D. focuses on context-aware adaptations and multisensory stimuli for AR
  • ๐Ÿ” My main interests are AR, VR, HCI, and game development

Most of my repos are private.

openai-text-to-speech-for-unity's People

Contributors

mapluisch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

openai-text-to-speech-for-unity's Issues

Failed to get Audio Data from Open AI

Hi,
I followed the instructions for setting up the project and entered the OpenAI API key with audio permissions.
However, when I call it, the audioData byte array returns a null value. Could someone please assist in resolving the error?

bytes[] to AudioClip

Hi, we are using ReadyPlayerMe for our avatars and NPCs. We want to let the NPCs speak with this plugin. ReadyPlayerMe has its own "speak" animation. All it needs is a audioclip to play. Your system gives us audio as byte array ( bytes[] ). How can we convert it to AudioClip inside Unity on real time?

Too many reaquest!

Failed to get audio data from OpenAI.
UnityEngine.Debug:LogError (object)
TTSManager/d__6:MoveNext () (at Assets/TTS/Scripts/TTSManager.cs:28)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder1<byte[]>:SetResult (byte[]) OpenAIWrapper/<RequestTextToSpeech>d__6:MoveNext () (at Assets/TTS/Scripts/OpenAIWrapper.cs:62) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1<byte[]>:SetResult (byte[])
OpenAIWrapper/d__5:MoveNext () (at Assets/TTS/Scripts/OpenAIWrapper.cs:54)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()

My API key is new and has full quota!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.