Skip to main content

tok715

开发代号: TOK715

依赖

  • ffmpeg, 使用 ffmpeg 捕捉麦克风数据流
  • poetry, 使用 poetry 管理 Python 依赖

组件

tok715-voicerecog: 语音识别模块

功能

  • 使用 ffmpeg 捕捉麦克风数据流
  • 传输数据流到阿里云语音识别服务
  • 使用 redis 发布识别结果到 自然语言输入 主题

编码格式

阿里云识别服务要求编码格式为 pcm_s16le,采样率为 16000,单声道。

tok715-vectorstor: 存储和预处理模块

Redis PUB/SUB 主题

自然语言输入

tok715:nl-input:USER_GROUP:USER_ID

{
  "ts": 1698240603702,
  "text": "坐在驶进乡间小路的摇晃公交车里,他回想起了过去唯一次和祖母交谈。",
  "user": {
    "id": "owner",
    "name": "主人",
    "group": "owner"
  }
}

配置文件

# tok715.yml

# 用户身份
# 使用模块:voicerecog
user:
  id: owner
  group: owner
  name: 主人

# redis 配置
# 更多参数,翻阅 https://redis-py.readthedocs.io/en/stable/connections.html
# 使用模块: voicerecog
redis:
  host: '127.0.0.1'
  port: 6379

# 阿里云 服务配置
# 使用模块: voicerecog
aliyun:
  # 阿里云语音识别
  nls:
    endpoint: wss://nls-gateway.cn-shanghai.aliyuncs.com/ws/v1
    app_key: xxxxx
    access_key_id: xxxxx
    access_key_secret: xxxxx

许可证

TOK715 Developers, MIT License

Metadata

Release files for tok715 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tok715 0.0.2
File Size Uploaded Provenance Actions
tok715-0.0.2.tar.gz 41.5 kB Without provenance Details for tok715-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tok715 0.0.2
File Interpreter ABI Platform Actions
tok715-0.0.2-py3-none-any.whl Python 3 none any Details for tok715-0.0.2-py3-none-any.whl

Total release size: 104.4 kB

Release files / tok715-0.0.2.tar.gz

Download URL tok715-0.0.2.tar.gz
Size 41.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ce5384c3015a1e6a99532e67396b73d810593cb6227939bc391ca525df6d2049
BLAKE2b-256 checksum
How to use checksums
57760749e45ee14f4887de6e13b465c5f613f07ab0495b4657788402ba879b77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.13 Darwin/23.0.0

Release files / tok715-0.0.2-py3-none-any.whl

Download URL tok715-0.0.2-py3-none-any.whl
Size 63.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f17ce7841b6761c5f6b958b3818bcd7fe07fcc80a0e2d4249168fbb6e402f68
BLAKE2b-256 checksum
How to use checksums
18be8bc83131f69111339719bbfa1457ae3d3d6f0050534913447d361bc4b3ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.13 Darwin/23.0.0

Security for tok715 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page