Skip to main content

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

Mulitask data format 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.

Metadata

Release files for dataoceanai-dolphin 20250317

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dataoceanai-dolphin 20250317
File Size Uploaded
dataoceanai-dolphin-20250317.tar.gz 607.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dataoceanai-dolphin 20250317
File Interpreter ABI Platform
dataoceanai_dolphin-20250317-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / dataoceanai-dolphin-20250317.tar.gz

Download URL dataoceanai-dolphin-20250317.tar.gz
Size 607.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c6cb0bb3284a53f754dd8576f0e7321fb24167f766d7bc75dd47ca1df5cfd737
BLAKE2b-256 checksum
How to use checksums
a3c7b6ad3921cb110be520ec7d96633e257363d9e56797c8042a3d3378641b0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.16

Release files / dataoceanai_dolphin-20250317-py3-none-any.whl

Download URL dataoceanai_dolphin-20250317-py3-none-any.whl
Size 613.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5f00dbda03a963e24aec0cb32063624734e9cc1d06035bcbf4ae69ccc19d1ff
BLAKE2b-256 checksum
How to use checksums
9dedf6879238b88e33d49990c5c28b206e648b83378adb7ce1472ee812a60dee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.16

Release history Release notifications | RSS feed

This release

20250317 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page