Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankushrathour/audiospeakerverification
AudioSpeakerVerification: FastAPI-based API for Speaker Matching and Verification using SpeechBrain. Compare and verify speaker identities from audio files.
https://github.com/ankushrathour/audiospeakerverification
api fastapi python3 speaker-verification speechbrain
Last synced: 7 days ago
JSON representation
AudioSpeakerVerification: FastAPI-based API for Speaker Matching and Verification using SpeechBrain. Compare and verify speaker identities from audio files.
- Host: GitHub
- URL: https://github.com/ankushrathour/audiospeakerverification
- Owner: AnkushRathour
- License: gpl-3.0
- Created: 2024-08-10T08:25:38.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-10T08:34:00.000Z (3 months ago)
- Last Synced: 2024-08-10T09:37:11.671Z (3 months ago)
- Topics: api, fastapi, python3, speaker-verification, speechbrain
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AudioSpeakerVerification
This repository contains the code for an **Audio Speaker Verification API** built using FastAPI, SpeechBrain, and Uvicorn. The API allows for the verification and matching of speakers from two different audio files, providing a similarity score and a boolean prediction indicating whether the two audio files are from the same speaker.
## Features
- **Speaker Verification:** Compares two audio files to determine if they are from the same speaker.
- **Pretrained Model:** Utilizes the `speechbrain/spkrec-ecapa-voxceleb` model for accurate speaker recognition.
- **FastAPI:** Provides a simple and efficient API interface.
- **CORS Support:** Enabled CORS middleware to allow cross-origin requests.## Installation
To set up the API, follow these steps:
1. **Clone the repository:**
```bash
git clone https://github.com/your-username/AudioSpeakerVerification.git
cd AudioSpeakerVerification2. **Install dependencies:**
Make sure you have Python 3.7+ installed, then install the required packages:
```bash
pip install fastapi==0.111.0 speechbrain uvicorn4. **Launch the API:**
Start the server with Uvicorn:
```bash
uvicorn main:app --host 0.0.0.0 --port 5000
The API will be accessible at http://localhost:5000.