Skip to content

records audio, transcribes it to text, and translates the transcribed text into a specified target language using Groq's API.

License

Notifications You must be signed in to change notification settings

90th/speech-translator-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • Rust and Cargo installed
  • An API token for the Groq API

Installation

  1. Clone the repository:

    git clone https://github.com/90th/speech-translator-rs.git
    cd speech-translator-rs
  2. Install dependencies:

    cargo build
  3. Set up environment variables:

    cp .env.example .env
    # Edit .env to include your API token

Usage

  1. Run the application:

    cargo run
  2. Follow the prompts to start and stop recording audio.

Configuration

  • Edit the .env file to include your Groq API token:
    API_TOKEN=your_api_token_here

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • CPAL for audio input
  • Hound for WAV file handling
  • Reqwest for HTTP requests
  • dotenv for environment variable support

About

records audio, transcribes it to text, and translates the transcribed text into a specified target language using Groq's API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages