Skip to main content

Tactigon Speech Socket perform stt over a audio stream sent by socket.

Project description

Tactigon Speech Socket

The tactigon team

This package enables the wearable device Tactigon Skin to stream audio to a stt middleware over a socket connection

Prerequisites

In order to use the Tactigon Gear SDK the following prerequisites needs to be observed:

  • Python version: following versions has been used and tested. It is STRONGLY recommended to use these ones depending on platform.
    • Linux: 3.8.x

Installing

Install and update using pip:

pip install tactigon-speech-socket

A Simple Example

import setup_path
import logging
# from tactigon_socket import SocketClient

from tactigon_speech_socket import TSkinSpeech
from tactigon_speech_socket.models.audio import VoiceConfig

logging.basicConfig(
    filename="receive.log",
    level=logging.DEBUG
)

def main():
    voice_config = VoiceConfig(
        "deepspeech-0.9.3-models.tflite",
        "my_Scorer_file.scorer"
    )
    try:
        ts = TSkinSpeech("localhost", 50006, voice_config)
        ts.start()
    except KeyboardInterrupt:
        pass
    finally:
        ts.join()


if __name__ == "__main__":
    main()

Links

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

tactigon_speech_socket-5.5.0.0.tar.gz (198.3 kB view details)

Uploaded Source

File details

Details for the file tactigon_speech_socket-5.5.0.0.tar.gz.

File metadata

  • Download URL: tactigon_speech_socket-5.5.0.0.tar.gz
  • Upload date:
  • Size: 198.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for tactigon_speech_socket-5.5.0.0.tar.gz
Algorithm Hash digest
SHA256 041b09e27be7f61d5ec398e671ddfb8a08fb2f820e6103036351458835330201
MD5 187adfe0acb6217cbfc0f88c3bf8e3a3
BLAKE2b-256 f097a7402b8eb25d09eee10fd9d46531bec4af9cac9a289bed8c59a8c97a6c85

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