---
title: 3D-Speaker
canonical_url: "https://www.modelscope.cn/models/AXERA-TECH/3D-Speaker"
md_url: "https://www.modelscope.cn/models/AXERA-TECH/3D-Speaker.md"
repository: AXERA-TECH/3D-Speaker
last_updated: 2026-01-21
license: mit
library_name:
  - onnx
  - pytorch
frameworks:
  - pytorch
language:
  - en
  - zh
downloads: 42
stars: 0
---

# 3D-Speaker

> 3D-Speaker - AXERA-TECH 在 ModelScope 开源的模型。This version of 3D-Speaker has been converted to run on the Axera NPU using w8a16 quantization.

AXERA-TECH/3D-Speaker 是 ModelScope 魔搭社区上的机器学习模型，采用 mit 许可。

- **Repository**: AXERA-TECH/3D-Speaker
- **License**: mit
- **Downloads**: 42
- **Stars**: 0
- **Last updated**: 2026-01-21

Source: https://www.modelscope.cn/models/AXERA-TECH/3D-Speaker

---

# 3D-Speaker

This version of 3D-Speaker has been converted to run on the Axera NPU using **w8a16** quantization.

This model has been optimized with the following LoRA: 

Compatible with Pulsar2 version: 4.1-patch1

## Convert tools links:

For those who are interested in model conversion, you can try to export axmodel through 

- [The repo of AXera Platform](https://github.com/AXERA-TECH/ax-samples), which you can get the detail of guide

- [Pulsar2 Link, How to Convert ONNX to axmodel](https://pulsar2-docs.readthedocs.io/en/latest/pulsar2/introduction.html) 


## Support Platform

- AX650
  - [M4N-Dock(爱芯派Pro)](https://wiki.sipeed.com/hardware/zh/maixIV/m4ndock/m4ndock.html)
  - [M.2 Accelerator card](https://axcl-docs.readthedocs.io/zh-cn/latest/doc_guide_hardware.html)
  
|Chips|model|cost|
|--|--|--|
|AX650|ERes2NetV2|5.09ms|
||Ecapa-tdnn|7.37ms|

## How to use

Download all files from this repository to the device

```

root@ax650:~/3D-Speaker# tree
.
|-- ax650
|   `-- res2netv2.axmodel
|   `-- ecapa-tdnn.axmodel
|-- wavs
|   `-- speaker1_a_cn_16k.wav
|   `-- speaker1_b_cn_16k.wav
|   `-- speaker2_a_cn_16k.wav
|-- run_onnx_res2netv2.py
|-- run_axmodel_res2netv2.py
|-- run_onnx_ecapa_tdnn.py
|-- run_axmodel_ecapa_tdnn.py
|-- res2netv2.onnx
|-- ecapa-tdnn.onnx

```

### Inference

```
Input Wavs:
|-- wavs
|   `-- speaker1_a_cn_16k.wav
|   `-- speaker1_b_cn_16k.wav
|   `-- speaker2_a_cn_16k.wav
```

#### Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)

```
root@ax650 ~/3d_speaker # python3 run_axmodel_ecapa_tdnn.py --wavs ./speaker1_a_cn_16k.wav ./speaker2_a_cn_16k.wav
[INFO] Available providers:  ['AxEngineExecutionProvider']
[INFO] Using provider: AxEngineExecutionProvider
[INFO] Chip type: ChipType.MC50
[INFO] VNPU type: VNPUType.DISABLED
[INFO] Engine version: 2.12.0s
[INFO] Model type: 2 (triple core)
[INFO] Compiler version: 4.1-patch1-dirty 6247f37c-dirty
[INFO] Using provider: AxEngineExecutionProvider
[INFO] Model type: 2 (triple core)
[INFO] Compiler version: 4.1-patch1-dirty 6247f37c-dirty
[INFO]: Computing the similarity score...
[INFO]: The similarity score between two input wavs is 0.7166

```

Output:
[INFO]: The similarity score between two input wavs is 0.7166
