rhasspy / piper

A fast, local neural text to speech system

Home Page:https://rhasspy.github.io/piper-samples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Piper Out Of Memory

aladin2000 opened this issue · comments

How to solve that problem ? Is there some tuning for that explosion in memory .... ?

using piper in Homeassistant docker ( hassio ) last release 2024.3.*

dmesg:
[41465.430594] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=e32ee316915bccf445d1398078f5822e06088eaf86a2d5cd114214b879c22aa5,mems_allowed=0,global_oom,task_memcg=/docker/6ca32d8c5ff6fc7d10572caf7f876bebeeeaa3b9782fbc27ac5f3e9a3ed3360d,task=piper,pid=876539,uid=0
[41465.430625] Out of memory: Killed process 876539 (piper) total-vm:11344712kB, anon-rss:5891248kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:20104kB oom_score_adj:200
[41467.486754] oom_reaper: reaped process 876539 (piper), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

journalctl output .:..

avril 02 20:04:19 Mini addon_core_piper[23497]: FileNotFoundError: [Errno 2] No such file or directory: ''
avril 02 22:47:46 Mini hassio_supervisor[23497]: 2024-04-02 22:47:46.795 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_piper
avril 02 22:47:46 Mini hassio_supervisor[23497]: 2024-04-02 22:47:46.856 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_piper
avril 02 23:42:36 Mini kernel: Out of memory: Killed process 872620 (piper) total-vm:11041368kB, anon-rss:5975628kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:20424kB oom_score_adj:200

core_piper/options.json;
{
"voice": "fr_FR-gilles-low",
"speaker": 0,
"length_scale": 1.0,
"noise_scale": 0.667,
"noise_w": 3.0,
"max_piper_procs": 1,
"debug_logging": false,
"update_voices": true
}

Hi @aladin2000,
You have noise_w in a much higher value. That parameter, in terms of speech, is a phoneme inflector/stresser. I recommend to set this scale to 1.5 as maximum. Inflections are usually too exaggerated at higher values.