Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/RoyNkem/SwiftUI-AI-Voice-Assistant

A multi-platform app for voice-based interactions built using SwiftUI with advanced AI capabilities.
https://github.com/RoyNkem/SwiftUI-AI-Voice-Assistant

gpt-4 ios macos mvvm openai-api swiftui text-to-speech visionos whisper

Last synced: 13 days ago
JSON representation

A multi-platform app for voice-based interactions built using SwiftUI with advanced AI capabilities.

Awesome Lists containing this project

README

        

# SwiftUI AI Voice Assistant

This repository contains an AI Voice Assistant app built using SwiftUI and integrated with OpenAI APIs, including GPT4 Chat Completion, Whisper, and Text-to-Speech (TTS) functionalities.

## Features

- Utilizes advanced AI models such as GPT4, GPT4V, GPT4-turbo, and GPT3.5-Turbo for intelligent conversational interactions.
- Allows users to select from various voice types for Text-to-Speech (TTS) output.
- Supports multiple platforms including iOS, macOS, and visionOS.

## Requirements

To run the app, you'll need the following:

- Xcode 15 or later
- iOS 17 or later
- macOS 14 or later
- visionOS 1.0 or later
- [OpenAI API Key](https://platform.openai.com/api-keys) for accessing GPT4, Whisper, and TTS functionalities

## Installation

1. Clone this repository to your local machine.
2. Open the project in Xcode.
3. Open the `Constants.swift` file located in the `Shared` folder.
4. Replace `OPENAI_API_KEY` in the Constants struct with your actual OpenAI API Key.
```swift
struct Constants {
static let apiKey = "OPENAI_API_KEY"
}
5. Build and run the project on your desired platform (iOS, macOS, or visionOS).

## Usage

- Launch the app on your preferred platform.
- Use the AI Voice Assistant to engage in natural language conversations, receive whisper responses, and listen to Text-to-Speech outputs in various voice styles.

## Acknowledgements

Special thanks to [Alfian Losari](https://github.com/alfianlosari) for inspiration.

## License

This project is licensed under the [MIT License](LICENSE).