DataoceanAI Open-source Large Speech Model
Project description
Dolphin
Dolphin is a multilingual, multitask ASR model jointly trained by DataoceanAI and Tsinghua University. It supports 40 Eastern languages and has been trained on a large-scale dataset of 210,000 hours, which includes both DataoceanAI's proprietary datasets and open-source datasets. The model can perform speech recognition and language identification.
Approach
Dolphin is built on Whisper and OWSM, using an attention-based encoder-decoder architecture. The encoder is Ebranchformer and the decoder is Transformer. Dolphin focuses on automatic speech recognition (ASR), its multitask data format is slightly different from Whisper's. Dolphin does not support Translation.
In addition,base on the characteristics of the DataocanAI dataset, Dolphin introduces region-specific tokens for different languages, enabling support for dialects.
Setup
Dolphin depends on ffmpeg to convert audio to WAV. If your OS does not have ffmpeg, please install it first.
# Ubuntu or Debian
sudo apt update && sudo apt install ffmpeg
# MacOS
brew install ffmpeg
# Windows
choco install ffmpeg
You can install the latest version of Dolphin using the following command:
pip install -U dataoceanai-dolphin
Additionally, it can also be installed from source using the following command:
pip install git+https://github.com/SpeechOceanTech/Dolphin.git
Available model and languages
Languages
Dolphin covers 40 Eastern languages and supports 22 Chinese dialects.
Usage
Command-line usage
dolphin audio.wav
# Download model and specify the model path
dolphin audio.wav --model small --model_dir /data/models/dolphin/
# Specify language and region
dolphin audio.wav --model small --model_dir /data/models/dolphin/ --lang_sym "<zh>" --region_sym "<CN>"
# padding speech to 30 seconds
dolphin audio.wav --model small --model_dir /data/models/dolphin/ --lang_sym "<zh>" --region_sym "<CN>" --paddig_speech true
Python usage
import dolphin
waveform = dolphin.load_audio("audio.wav")
model = dolphin.load_model("small", "/data/models/dolphin", "cuda")
result = model(waveform)
print(result["text"])
License
Dolphin's code and model weights are released under the Apache 2.0 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dataoceanai-dolphin-20250317.tar.gz.
File metadata
- Download URL: dataoceanai-dolphin-20250317.tar.gz
- Upload date:
- Size: 607.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6cb0bb3284a53f754dd8576f0e7321fb24167f766d7bc75dd47ca1df5cfd737
|
|
| MD5 |
76cda6ad4e90864378f050eeee218296
|
|
| BLAKE2b-256 |
a3c7b6ad3921cb110be520ec7d96633e257363d9e56797c8042a3d3378641b0f
|
File details
Details for the file dataoceanai_dolphin-20250317-py3-none-any.whl.
File metadata
- Download URL: dataoceanai_dolphin-20250317-py3-none-any.whl
- Upload date:
- Size: 613.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5f00dbda03a963e24aec0cb32063624734e9cc1d06035bcbf4ae69ccc19d1ff
|
|
| MD5 |
b4f4589826dde6df1c1c584a26873810
|
|
| BLAKE2b-256 |
9dedf6879238b88e33d49990c5c28b206e648b83378adb7ce1472ee812a60dee
|