Skip to content

About

No description, website, or topics provided.

Resources

Stars

13 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

Groq-Unity ๐Ÿง ๐ŸŽฎ

Groq-Unity is an open-source Unity integration for Groq's AI APIs.

๐Ÿš€ Built on top of jgravelle/GroqApiLibrary, fully adapted for Unity with samples and MonoBehaviour support.


โœจ Features

  • โœ… Chat Completion with Mixtral / LLaMA models
  • ๐ŸŽ™๏ธ Speech Synthesis (TTS) using playai-tts voices
  • ๐Ÿงพ Transcription using whisper-large-v3
  • ๐Ÿงฎ Function Calling & Tool Use from within Unity
  • ๐Ÿ”Š Built-in audio player for TTS & transcription demos
  • ๐Ÿ”ง Simple MonoBehaviour components for easy use in scenes

๐Ÿ“ฆ Requirements


๐Ÿ”ง Setup

  1. Clone or download this repository
  2. (Optional) If you want are integrating these scripts into your project, install NuGet for Unity and the packages: "System.Net.Http.Json"
  3. Add your Groq API Key in the relevant script or config field
  4. Open the sample scene, enable one of the 5 sample gameobjects, hit play.
  5. For TTS sample, go to https://console.groq.com/playground?model=playai-tts and accept the terms.

๐Ÿงช Samples Included

Feature Scene / Script Description
๐Ÿ”ก Chat GroqChat.cs Simple text prompt and response using Mixtral
๐Ÿ—ฃ๏ธ TTS GroqTTS.cs Uses playai-tts to generate speech from text and play it
๐ŸŽง Transcription WhisperTranscriber.cs Record mic input and transcribe with whisper-large-v3
๐Ÿงฐ Tool Calling GroqToolSample.cs Run a tool (e.g. spawn colored cubes) via structured function call
๐ŸŽ›๏ธ Voice Enum GroqTTS.cs Enum of all available voices for TTS selection in the Editor

About

No description, website, or topics provided.

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages