Skip to main content

Biblioteka STT i TTS dla Raspberry Pi

Project description

rpi-stt-tts-shell

Przykładowy projekt dla Raspberry Pi zarządzany przez Poetry, oferujący funkcje rozpoznawania i syntezowania mowy.

Instalacja

Wymagania systemowe

  • Raspberry Pi (testowano na Raspberry Pi 3B+ i 4)
  • Python 3.7 lub nowszy
  • pip lub Poetry

Instalacja przy użyciu pip

pip install rpi-stt-tts-shell

Podstawowe komendy głosowe

  • "Włącz światło" - aktywuje GPIO do włączenia światła
  • "Wyłącz światło" - dezaktywuje GPIO
  • "Jaka jest temperatura" - odczytuje aktualną temperaturę z czujnika DHT

Podłączenie sprzętu

Wymagane komponenty

  • Raspberry Pi
  • Czujnik temperatury DHT22 (podłączony do pinu GPIO4)
  • LED (podłączony do pinu GPIO17)
  • Mikrofon USB (do rozpoznawania mowy)
  • Głośnik (podłączony przez wyjście audio lub Bluetooth)

Schemat podłączenia

Raspberry Pi:
- GPIO4 -> DHT22 (dane)
- GPIO17 -> LED (przez rezystor 220Ω)
- 3.3V -> DHT22 (zasilanie)
- GND -> DHT22 (masa)
- GND -> LED (masa)

Rozwiązywanie problemów

Popularne problemy

  1. Problem z rozpoznawaniem mowy

    • Upewnij się, że mikrofon jest prawidłowo podłączony
    • Sprawdź poziom głośności mikrofonu w systemie
  2. Czujnik DHT nie działa

    • Sprawdź podłączenie przewodów
    • Upewnij się, że biblioteka ma wymagane uprawnienia
  3. Błędy związane z GPIO

    • Uruchom aplikację z uprawnieniami administratora: sudo rpi-example

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rpi_stt_tts_shell-0.2.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rpi_stt_tts_shell-0.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file rpi_stt_tts_shell-0.2.0.tar.gz.

File metadata

  • Download URL: rpi_stt_tts_shell-0.2.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.12 Linux/6.14.5-300.fc42.x86_64

File hashes

Hashes for rpi_stt_tts_shell-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2b28ad05a5f4a81d52c2b925ae3a166c57db34a85ed0c67c41bf3758bceeffca
MD5 2bfa03da8a34b5e696a24a39d3fa8436
BLAKE2b-256 e841ab8ed73ebc72c3fac872ead1557659d235d59ad85aac38d6c23857adeca4

See more details on using hashes here.

File details

Details for the file rpi_stt_tts_shell-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rpi_stt_tts_shell-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.12 Linux/6.14.5-300.fc42.x86_64

File hashes

Hashes for rpi_stt_tts_shell-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05b17c43b951daa413b20eac6e27f87916f591f4e3a10a22fb2343b4f4282cec
MD5 8d7748e2c5e6d340882c9bfbc4d9c780
BLAKE2b-256 82a8bac4e217ff9193e49753900d468a5b8cdf7efb89f2c61523ded2d8c15d4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page