Skip to content

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

License

Notifications You must be signed in to change notification settings

RoyNkem/SwiftUI-AI-Voice-Assistant

Repository files navigation

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 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.
    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 for inspiration.

License

This project is licensed under the MIT License.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages