File size: 2,995 Bytes
4a1fc18
 
 
 
 
 
 
b8d43d7
15f4c03
b8d43d7
15f4c03
b8d43d7
15f4c03
b8d43d7
15f4c03
14e9a10
 
 
 
 
a8147ac
f830a19
 
 
 
 
8a66b0e
14e9a10
 
882ba19
 
 
 
 
 
 
 
 
 
 
 
 
8a66b0e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
license: cc0-1.0
language:
- lv
tags:
- piper
- tts
pipeline_tag: text-to-speech
widget:
- src: https://huggingface.co/RaivisDejus/Piper-lv_LV-Aivars-medium/resolve/main/0.wav
  example_title: Varavīksne
- src: https://huggingface.co/RaivisDejus/Piper-lv_LV-Aivars-medium/resolve/main/1.wav
  example_title: Vilciens
- src: https://huggingface.co/RaivisDejus/Piper-lv_LV-Aivars-medium/resolve/main/2.wav
  example_title: Balsu talka
---
# Latvian Piper TTS voice "Aivars"

Voice model is built on [audio books](https://www.youtube.com/@LatvijasNeredzigobiblioteka) of [Latvijas Neredzīgo bibliotēka](https://neredzigobiblioteka.lv/). For privacy reasons the original voices in the recordings have been cloned to a LibriVox voice that you hear in the model and sample recordings. Audio book recordings are used with permission from Latvijas Neredzīgo bibliotēka.

| Voice samples<br/>&nbsp; | <a target="_blank" href="https://huggingface.co/spaces/RaivisDejus/Latvian-Piper-TTS"><img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg" alt="Open in HuggingFace"/></a> |
|---|---|
| Varavīksne | <audio controls><source src="https://huggingface.co/RaivisDejus/Piper-lv_LV-Aivars-medium/resolve/main/0.wav" type="audio/wav">0.wav</audio> |
| Vilciens | <audio controls><source src="https://huggingface.co/RaivisDejus/Piper-lv_LV-Aivars-medium/resolve/main/1.wav" type="audio/wav">1.wav</audio> |
| Balsu talka | <audio controls><source src="https://huggingface.co/RaivisDejus/Piper-lv_LV-Aivars-medium/resolve/main/2.wav" type="audio/wav">2.wav</audio> |

Aivars TTS voice model is licenced under CC0 1.0 Universal [(CC0 1.0)](https://creativecommons.org/publicdomain/zero/1.0/) Public Domain Dedication. You are free to use it for any purpose, including commercial, no strings attached. However, it would be nice if you would choose to help the latvian open speach data to grow by participating and spreading the word about the [Balsu talka](https://balsutalka.lv/) project.

For information about use of this voice model see [Piper TTS GitHub repository](https://github.com/rhasspy/piper/).

## Home Assistant integration

To add this voice model to your Home Assistant instance, download model files to `/share/piper/` and rename them to `aivars.onnx` and `aivars.onnx.json`.

```bash
mkdir -p /share/piper/
cd /share/piper/
wget -O aivars.onnx https://huggingface.co/RaivisDejus/Piper-lv_LV-Aivars-medium/resolve/main/lv_LV-aivars-medium.onnx
wget -O aivars.onnx.json https://huggingface.co/RaivisDejus/Piper-lv_LV-Aivars-medium/resolve/main/lv_LV-aivars-medium.onnx.json
```

Then install `Piper` addon and configure Voice assistant to use `aivars (medium)` voice model. Our custom voice will not show up in the voice list in `Piper` configuration, but it will be available in Voice assistant configuration.

For latvian speech recognition in Home assistant use [latvian whisper small model](https://huggingface.co/RaivisDejus/whisper-small-lv)