Seite 1 von 1

Fehler bei Installation von Piper und whisper

Verfasst: Mi 17. Jan 2024, 11:54
von Hadson
Bei der Installation von Piper und whisper komme ich nicht weiter... vielleicht weiß jemand einen Rat?

- die Container starten immer wieder neu
angehängt habe ich den LOG von portainer
- openwakeword lies sich installieren und über wyoming protocol in HA integrieren
- habe schon einiges probiert
- aus den compose_templates die normalen piper und whisper codes genommme
- aus den compose_templates die wyoming-piper und wyoming-whisper codes genommen
- bei piper die sprachmodelle in der "command" Zeile geändert (2stück versucht, glaub englisch und irgendwas noch)
- pihole ausgemacht
- komplettes update mit dem Skript
- ich habe versucht die .onnx Dateien direkt in den Pi Ordner zu kopieren

Hat alles nichts gebracht...
vielleicht hat jemand eine Idee was ich noch probieren könnte oder
kann mir sagen was dieser Fehler bedeutet



Code: Alles auswählen

File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):

socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/download.py", line 152, in ensure_voice_exists
    with urlopen(_quote_url(file_url)) as response, open(
  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>

Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/__main__.py", line 209, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/__main__.py", line 177, in main
    await process_manager.get_process()
  File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/process.py", line 121, in get_process
    onnx_path, config_path = find_voice(voice_name, self.args.data_dir)
  File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/download.py", line 183, in find_voice
    raise VoiceNotFoundError(name)

wyoming_piper.download.VoiceNotFoundError: de_DE-thorsten-low

ERROR:wyoming_piper.download:Unexpected error while downloading files for de_DE-thorsten-low

Traceback (most recent call last):
  File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/usr/lib/python3.9/http/client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
    self.send(msg)
  File "/usr/lib/python3.9/http/client.py", line 950, in send
    self.connect()
  File "/usr/lib/python3.9/http/client.py", line 1417, in connect
    super().connect()
  File "/usr/lib/python3.9/http/client.py", line 921, in connect
    self.sock = self._create_connection(
  File "/usr/lib/python3.9/socket.py", line 822, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):

socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/download.py", line 152, in ensure_voice_exists
    with urlopen(_quote_url(file_url)) as response, open(
  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
    raise URLError(err)

urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>

Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/__main__.py", line 209, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/__main__.py", line 177, in main
    await process_manager.get_process()
  File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/process.py", line 121, in get_process
    onnx_path, config_path = find_voice(voice_name, self.args.data_dir)
  File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/download.py", line 183, in find_voice
    raise VoiceNotFoundError(name)
wyoming_piper.download.VoiceNotFoundError: de_DE-thorsten-low

Gruß
Marcus

Re: Fehler bei Installation von Piper und whisper

Verfasst: Fr 19. Jan 2024, 08:09
von Hadson
Bin etwas weiter...

Piper läuft habe folgendes gemacht:
- docker compose abgepasst

Code: Alles auswählen

  wyoming-piper:
    container_name: wyoming-piper
    image: rhasspy/wyoming-piper:latest # https://github.com/home-assistant/addons/blob/master/piper/DOCS.md
    command: --voice de_DE-thorsten-low --length-scale 1.0 --data-dir ./volumes/wyoming/piper
    volumes:
      - ./volumes/wyoming/piper:/data
    environment:
      - TZ=Europe/Berlin
    restart: unless-stopped
    ports:
      - 10200:10200
     
- Die Sprachdateien einzeln in den Ordner ./volumes/wyoming/piper kopiert von Seite https://huggingface.co/rhasspy/piper-vo ... orsten/low
- Diese habe ich umbenannt in (MODEL_CARD, ALIASES, de_DE-thorsten-low.onnx und de_DE-thorsten-low.onnx.json)

Fehlermeldung kommt immernoch aber wichtig ganz unten steht INFO:__main__:Ready
jetzt steht da bei mir in den Logs

Code: Alles auswählen

2024-01-18T21:46:18.212092701Z     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2024-01-18T21:46:18.212105868Z socket.gaierror: [Errno -3] Temporary failure in name resolution
2024-01-18T21:46:18.212119182Z 
2024-01-18T21:46:18.212131867Z During handling of the above exception, another exception occurred:
2024-01-18T21:46:18.212145052Z 
2024-01-18T21:46:18.212157737Z Traceback (most recent call last):
2024-01-18T21:46:18.212170959Z   File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/download.py", line 152, in ensure_voice_exists
2024-01-18T21:46:18.212187089Z     with urlopen(_quote_url(file_url)) as response, open(
2024-01-18T21:46:18.212200385Z   File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
2024-01-18T21:46:18.212213552Z     return opener.open(url, data, timeout)
2024-01-18T21:46:18.212226737Z   File "/usr/lib/python3.9/urllib/request.py", line 517, in open
2024-01-18T21:46:18.212239940Z     response = self._open(req, data)
2024-01-18T21:46:18.212252792Z   File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
2024-01-18T21:46:18.212265699Z     result = self._call_chain(self.handle_open, protocol, protocol +
2024-01-18T21:46:18.212278773Z   File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
2024-01-18T21:46:18.212298051Z     result = func(*args)
2024-01-18T21:46:18.212313384Z   File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
2024-01-18T21:46:18.212326773Z     return self.do_open(http.client.HTTPSConnection, req,
2024-01-18T21:46:18.212339643Z   File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
2024-01-18T21:46:18.212352772Z     raise URLError(err)
2024-01-18T21:46:18.212365624Z urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
2024-01-18T21:46:18.212380550Z Traceback (most recent call last):
2024-01-18T21:46:18.212393494Z   File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
2024-01-18T21:46:18.212406624Z     return _run_code(code, main_globals, None,
2024-01-18T21:46:18.212419327Z   File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
2024-01-18T21:46:18.212432272Z     exec(code, run_globals)
2024-01-18T21:46:18.212445216Z   File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/__main__.py", line 209, in <module>
2024-01-18T21:46:18.212495567Z     asyncio.run(main())
2024-01-18T21:46:18.212513585Z   File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
2024-01-18T21:46:18.212526956Z     return loop.run_until_complete(main)
2024-01-18T21:46:18.212539733Z   File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
2024-01-18T21:46:18.212553159Z     return future.result()
2024-01-18T21:46:18.212566011Z   File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/__main__.py", line 177, in main
2024-01-18T21:46:18.212579529Z     await process_manager.get_process()
2024-01-18T21:46:18.212592325Z   File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/process.py", line 121, in get_process
2024-01-18T21:46:18.212606325Z     onnx_path, config_path = find_voice(voice_name, self.args.data_dir)
2024-01-18T21:46:18.212619547Z   File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/download.py", line 183, in find_voice
2024-01-18T21:46:18.212633195Z     raise VoiceNotFoundError(name)
2024-01-18T21:46:18.212646066Z wyoming_piper.download.VoiceNotFoundError: de_DE-thorsten-low
2024-01-18T21:46:30.512109125Z ERROR:wyoming_piper.download:Unexpected error while downloading files for de_DE-thorsten-low
2024-01-18T21:46:30.512262938Z Traceback (most recent call last):
2024-01-18T21:46:30.512280938Z   File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
2024-01-18T21:46:30.512316622Z     h.request(req.get_method(), req.selector, req.data, headers,
2024-01-18T21:46:30.512332900Z   File "/usr/lib/python3.9/http/client.py", line 1255, in request
2024-01-18T21:46:30.512346770Z     self._send_request(method, url, body, headers, encode_chunked)
2024-01-18T21:46:30.512359733Z   File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
2024-01-18T21:46:30.512372640Z     self.endheaders(body, encode_chunked=encode_chunked)
2024-01-18T21:46:30.512407436Z   File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
2024-01-18T21:46:30.512421955Z     self._send_output(message_body, encode_chunked=encode_chunked)
2024-01-18T21:46:30.512434862Z   File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
2024-01-18T21:46:30.512447788Z     self.send(msg)
2024-01-18T21:46:30.512460473Z   File "/usr/lib/python3.9/http/client.py", line 950, in send
2024-01-18T21:46:30.512495102Z     self.connect()
2024-01-18T21:46:30.512508750Z   File "/usr/lib/python3.9/http/client.py", line 1417, in connect
2024-01-18T21:46:30.512521805Z     super().connect()
2024-01-18T21:46:30.512534416Z   File "/usr/lib/python3.9/http/client.py", line 921, in connect
2024-01-18T21:46:30.512547694Z     self.sock = self._create_connection(
2024-01-18T21:46:30.512583508Z   File "/usr/lib/python3.9/socket.py", line 822, in create_connection
2024-01-18T21:46:30.512596842Z     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
2024-01-18T21:46:30.512676804Z   File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
2024-01-18T21:46:30.512694618Z     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2024-01-18T21:46:30.512707748Z socket.gaierror: [Errno -3] Temporary failure in name resolution
2024-01-18T21:46:30.512720340Z 
2024-01-18T21:46:30.512754655Z During handling of the above exception, another exception occurred:
2024-01-18T21:46:30.512768858Z 
2024-01-18T21:46:30.512781506Z Traceback (most recent call last):
2024-01-18T21:46:30.512795025Z   File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/download.py", line 152, in ensure_voice_exists
2024-01-18T21:46:30.512808043Z     with urlopen(_quote_url(file_url)) as response, open(
2024-01-18T21:46:30.512842821Z   File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
2024-01-18T21:46:30.512857413Z     return opener.open(url, data, timeout)
2024-01-18T21:46:30.512870302Z   File "/usr/lib/python3.9/urllib/request.py", line 517, in open
2024-01-18T21:46:30.512883135Z     response = self._open(req, data)
2024-01-18T21:46:30.512895579Z   File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
2024-01-18T21:46:30.512930486Z     result = self._call_chain(self.handle_open, protocol, protocol +
2024-01-18T21:46:30.512943653Z   File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
2024-01-18T21:46:30.512961838Z     result = func(*args)
2024-01-18T21:46:30.512974967Z   File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
2024-01-18T21:46:30.513008282Z     return self.do_open(http.client.HTTPSConnection, req,
2024-01-18T21:46:30.513022689Z   File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
2024-01-18T21:46:30.513035522Z     raise URLError(err)
2024-01-18T21:46:30.513048078Z urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
2024-01-18T21:46:30.513337112Z Traceback (most recent call last):
2024-01-18T21:46:30.513401963Z   File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
2024-01-18T21:46:30.513795088Z     return _run_code(code, main_globals, None,
2024-01-18T21:46:30.513863365Z   File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
2024-01-18T21:46:30.513982642Z     exec(code, run_globals)
2024-01-18T21:46:30.514015438Z   File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/__main__.py", line 209, in <module>
2024-01-18T21:46:30.514264806Z     asyncio.run(main())
2024-01-18T21:46:30.514296527Z   File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
2024-01-18T21:46:30.514426508Z     return loop.run_until_complete(main)
2024-01-18T21:46:30.514453359Z   File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
2024-01-18T21:46:30.514862096Z     return future.result()
2024-01-18T21:46:30.514922762Z   File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/__main__.py", line 177, in main
2024-01-18T21:46:30.515077667Z     await process_manager.get_process()
2024-01-18T21:46:30.515111908Z   File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/process.py", line 121, in get_process
2024-01-18T21:46:30.515350702Z     onnx_path, config_path = find_voice(voice_name, self.args.data_dir)
2024-01-18T21:46:30.515418442Z   File "/usr/local/lib/python3.9/dist-packages/wyoming_piper/download.py", line 183, in find_voice
2024-01-18T21:46:30.515846048Z     raise VoiceNotFoundError(name)
2024-01-18T21:46:30.515917640Z wyoming_piper.download.VoiceNotFoundError: de_DE-thorsten-low
2024-01-18T21:47:34.168275010Z INFO:__main__:Ready

Whisper läuft damit aber weiterhin nicht

Dateien sind da aber er akzeptiert sie nicht...
so sehen der Log aus

Code: Alles auswählen

    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/__main__.py", line 136, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/__main__.py", line 78, in main
    model_dir = download_model(model, args.download_dir)
  File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/download.py", line 90, in download_model
    with urlopen(model_url) as response:
  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
WARNING:wyoming_faster_whisper.download:Model hashes do not match
WARNING:wyoming_faster_whisper.download:Expected: {'config.json': 'e5a2f85afc17f73960204cad2b002633', 'model.bin': 'c21f8eccfdc11978e9496dcb731c54e2', 'vocabulary.txt': 'c1120a13c94a8cbb132489655cdd1854'}
WARNING:wyoming_faster_whisper.download:Got: {'model.bin': '', 'config.json': '', 'vocabulary.txt': ''}
WARNING:wyoming_faster_whisper.download:Model hashes do not match
WARNING:wyoming_faster_whisper.download:Expected: {'config.json': 'e5a2f85afc17f73960204cad2b002633', 'model.bin': 'c21f8eccfdc11978e9496dcb731c54e2', 'vocabulary.txt': 'c1120a13c94a8cbb132489655cdd1854'}
WARNING:wyoming_faster_whisper.download:Got: {'model.bin': '', 'config.json': '', 'vocabulary.txt': ''}
INFO:__main__:Downloading FasterWhisperModel.TINY to /data
Traceback (most recent call last):
  File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "/usr/lib/python3.9/http/client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
    self.send(msg)
  File "/usr/lib/python3.9/http/client.py", line 950, in send
    self.connect()
  File "/usr/lib/python3.9/http/client.py", line 1417, in connect
    super().connect()
  File "/usr/lib/python3.9/http/client.py", line 921, in connect
    self.sock = self._create_connection(
  File "/usr/lib/python3.9/socket.py", line 822, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/__main__.py", line 136, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/__main__.py", line 78, in main
    model_dir = download_model(model, args.download_dir)
  File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/download.py", line 90, in download_model
    with urlopen(model_url) as response:
  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
WARNING:wyoming_faster_whisper.download:Model hashes do not match
WARNING:wyoming_faster_whisper.download:Expected: {'config.json': 'e5a2f85afc17f73960204cad2b002633', 'model.bin': 'c21f8eccfdc11978e9496dcb731c54e2', 'vocabulary.txt': 'c1120a13c94a8cbb132489655cdd1854'}
WARNING:wyoming_faster_whisper.download:Got: {'model.bin': '', 'config.json': '', 'vocabulary.txt': ''}
WARNING:wyoming_faster_whisper.download:Model hashes do not match
WARNING:wyoming_faster_whisper.download:Expected: {'config.json': 'e5a2f85afc17f73960204cad2b002633', 'model.bin': 'c21f8eccfdc11978e9496dcb731c54e2', 'vocabulary.txt': 'c1120a13c94a8cbb132489655cdd1854'}
WARNING:wyoming_faster_whisper.download:Got: {'model.bin': '', 'config.json': '', 'vocabulary.txt': ''}
INFO:__main__:Downloading FasterWhisperModel.TINY to /data


Woher will er die Dateien laden?... bei whisper find ich das nicht so einfach

die die ich fand passen scheinbar nicht https://huggingface.co/guillaumekln/fa ... /tree/main
WARNING:wyoming_faster_whisper.download:Model hashes do not match

Re: Fehler bei Installation von Piper und whisper

Verfasst: Mi 24. Jan 2024, 12:45
von ei23felix
Ich häng dir mal meine Config an.
Die hat bei mir zumindest vor ein paar Monaten so funktioniert und läuft auch aktuell.
Ich habe eigenes Voice Modell (de_DE-fxg-medium) erstellt und das in den Ordner kopiert, das klappt auch.
Hatte erst nur Probleme, weil ich da nicht den direkten Dateinamen in der onnx.json angegeben habe
In der Form klappte es dann:

Code: Alles auswählen

...
    "language": {
      "code": "de_DE",
      "family": "de",
      "region": "DE",
      "name_native": "Deutsch",
      "name_english": "German",
      "country_english": "Germany"
    },
    "dataset": "de_DE-fxg-medium"
  }
Die Parameter dahinter (--length-scale 0.8... ) verändern die Geschwindigkeit usw.. Das ist im Repository (siehe Link) auch beschrieben.
Laut der Fehlermeldung gibt es das Modell bei dir wohl nicht zum Download, aber die Modelle von Huggingface sollten auch gehen.
Wichtig ist nur, das du auch die json mit einfügst (hänge meine mal an)
de_DE-thorsten-low.onnx
de_DE-thorsten-low.onnx.json

Code: Alles auswählen

  
  wyoming-whisper:
    container_name: wyoming-whisper
    # command: --model tiny --language de # https://github.com/openai/whisper
    # command: --model base --language de
    command: --model small --language de
    # command: --model medium --language de
    # command: --model large --language de
    image: rhasspy/wyoming-whisper
    volumes:
      - ./volumes/wyoming/whisper:/data
    environment:
      - TZ=Europe/Berlin
    restart: unless-stopped
    ports:
      - 10300:10300

  wyoming-piper:
    container_name: wyoming-piper
    image: rhasspy/wyoming-piper # https://github.com/home-assistant/addons/blob/master/piper/DOCS.md
    command: --voice de_DE-fxg-medium --length-scale 0.8 --noise-scale 0.4 --noise-w 0.4
    volumes:
      - ./volumes/wyoming/piper:/data
    environment:
      - TZ=Europe/Berlin
    restart: unless-stopped
    ports:
      - 10200:10200
      
de_DE-thorsten-low.onnx.json

Code: Alles auswählen

{
  "audio": {
    "sample_rate": 16000,
    "quality": "low"
  },
  "espeak": {
    "voice": "de"
  },
  "inference": {
    "noise_scale": 0.667,
    "length_scale": 1,
    "noise_w": 0.8
  },
  "phoneme_map": {},
  "phoneme_id_map": {
    "_": [
      0
    ],
    "^": [
      1
    ],
    "$": [
      2
    ],
    " ": [
      3
    ],
    "!": [
      4
    ],
    "'": [
      5
    ],
    "(": [
      6
    ],
    ")": [
      7
    ],
    ",": [
      8
    ],
    "-": [
      9
    ],
    ".": [
      10
    ],
    ":": [
      11
    ],
    ";": [
      12
    ],
    "?": [
      13
    ],
    "a": [
      14
    ],
    "b": [
      15
    ],
    "c": [
      16
    ],
    "d": [
      17
    ],
    "e": [
      18
    ],
    "f": [
      19
    ],
    "h": [
      20
    ],
    "i": [
      21
    ],
    "j": [
      22
    ],
    "k": [
      23
    ],
    "l": [
      24
    ],
    "m": [
      25
    ],
    "n": [
      26
    ],
    "o": [
      27
    ],
    "p": [
      28
    ],
    "q": [
      29
    ],
    "r": [
      30
    ],
    "s": [
      31
    ],
    "t": [
      32
    ],
    "u": [
      33
    ],
    "v": [
      34
    ],
    "w": [
      35
    ],
    "x": [
      36
    ],
    "y": [
      37
    ],
    "z": [
      38
    ],
    "æ": [
      39
    ],
    "ç": [
      40
    ],
    "ð": [
      41
    ],
    "ø": [
      42
    ],
    "ħ": [
      43
    ],
    "ŋ": [
      44
    ],
    "œ": [
      45
    ],
    "ǀ": [
      46
    ],
    "ǁ": [
      47
    ],
    "ǂ": [
      48
    ],
    "ǃ": [
      49
    ],
    "ɐ": [
      50
    ],
    "ɑ": [
      51
    ],
    "ɒ": [
      52
    ],
    "ɓ": [
      53
    ],
    "ɔ": [
      54
    ],
    "ɕ": [
      55
    ],
    "ɖ": [
      56
    ],
    "ɗ": [
      57
    ],
    "ɘ": [
      58
    ],
    "ə": [
      59
    ],
    "ɚ": [
      60
    ],
    "ɛ": [
      61
    ],
    "ɜ": [
      62
    ],
    "ɞ": [
      63
    ],
    "ɟ": [
      64
    ],
    "ɠ": [
      65
    ],
    "ɡ": [
      66
    ],
    "ɢ": [
      67
    ],
    "ɣ": [
      68
    ],
    "ɤ": [
      69
    ],
    "ɥ": [
      70
    ],
    "ɦ": [
      71
    ],
    "ɧ": [
      72
    ],
    "ɨ": [
      73
    ],
    "ɪ": [
      74
    ],
    "ɫ": [
      75
    ],
    "ɬ": [
      76
    ],
    "ɭ": [
      77
    ],
    "ɮ": [
      78
    ],
    "ɯ": [
      79
    ],
    "ɰ": [
      80
    ],
    "ɱ": [
      81
    ],
    "ɲ": [
      82
    ],
    "ɳ": [
      83
    ],
    "ɴ": [
      84
    ],
    "ɵ": [
      85
    ],
    "ɶ": [
      86
    ],
    "ɸ": [
      87
    ],
    "ɹ": [
      88
    ],
    "ɺ": [
      89
    ],
    "ɻ": [
      90
    ],
    "ɽ": [
      91
    ],
    "ɾ": [
      92
    ],
    "ʀ": [
      93
    ],
    "ʁ": [
      94
    ],
    "ʂ": [
      95
    ],
    "ʃ": [
      96
    ],
    "ʄ": [
      97
    ],
    "ʈ": [
      98
    ],
    "ʉ": [
      99
    ],
    "ʊ": [
      100
    ],
    "ʋ": [
      101
    ],
    "ʌ": [
      102
    ],
    "ʍ": [
      103
    ],
    "ʎ": [
      104
    ],
    "ʏ": [
      105
    ],
    "ʐ": [
      106
    ],
    "ʑ": [
      107
    ],
    "ʒ": [
      108
    ],
    "ʔ": [
      109
    ],
    "ʕ": [
      110
    ],
    "ʘ": [
      111
    ],
    "ʙ": [
      112
    ],
    "ʛ": [
      113
    ],
    "ʜ": [
      114
    ],
    "ʝ": [
      115
    ],
    "ʟ": [
      116
    ],
    "ʡ": [
      117
    ],
    "ʢ": [
      118
    ],
    "ʲ": [
      119
    ],
    "ˈ": [
      120
    ],
    "ˌ": [
      121
    ],
    "ː": [
      122
    ],
    "ˑ": [
      123
    ],
    "˞": [
      124
    ],
    "β": [
      125
    ],
    "θ": [
      126
    ],
    "χ": [
      127
    ],
    "ᵻ": [
      128
    ],
    "ⱱ": [
      129
    ]
  },
  "num_symbols": 130,
  "num_speakers": 1,
  "speaker_id_map": {},
  "piper_version": "0.2.0",
  "language": {
    "code": "de_DE",
    "family": "de",
    "region": "DE",
    "name_native": "Deutsch",
    "name_english": "German",
    "country_english": "Germany"
  },
  "dataset": "thorsten"
}

Re: Fehler bei Installation von Piper und whisper

Verfasst: Fr 16. Feb 2024, 08:37
von Hadson
Ich habe whisper jetzt hinbekommen aber der download der Models geht weiterhin nicht ...

man muss sie von hand hineinkopieren von dieser Seite
https://github.com/rhasspy/models/releases/

Ich habe da eine Meinung zu dem Problem gefunden,
https://github.com/rhasspy/rhasspy3/issues/16
da scheinbar es einen Unterschied bei Python 3.11 in der download.py Datei zu geben wo man etwas ersetzen muss(model.value).
Aber die Datei "download.py" habe ich nicht gefunden auf meinem System, wahrscheinlich weil Sie im Image liegt...

Kann man die Image Datei in Docker selbst öffnen und verändern?

Bei dem small Model geht er auf über 90% Speicherauslastung und ist abgestürzt, habe jetzt small-int8 laufen da sind es 78%...
Auf wieviel habt ihr den swap des Pi4 4Gb eingestellt?

Ist es überhaupt möglich mit whisper eine cloudfreie Spracherkennung im Smarthome mit einem Pi4 4Gb umzusetzen? Bei meinem Test hat es zwar funktioniert das er die Stromsteckdose einschaltet und antwortet, aber es dauerte sehr sehr lange...

Gruß
Marcus

Re: Fehler bei Installation von Piper und whisper

Verfasst: Di 20. Feb 2024, 14:16
von ei23felix
Ich hab es auf einem 8GB Pi laufen gehabt, aber das war auch sehr langsam.
Hab Piper jetzt auf einem Thinclient laufen, mit Nextcloud, Paperless, Jellyfin, immich...