CODENAME: TOK715
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tok715-0.0.2.tar.gz
(41.5 kB
view details)
Built Distribution
tok715-0.0.2-py3-none-any.whl
(63.0 kB
view details)
File details
Details for the file tok715-0.0.2.tar.gz
.
File metadata
- Download URL: tok715-0.0.2.tar.gz
- Upload date:
- Size: 41.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Darwin/23.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce5384c3015a1e6a99532e67396b73d810593cb6227939bc391ca525df6d2049 |
|
MD5 | b390618559b2e89bbf4143ab043c2138 |
|
BLAKE2b-256 | 57760749e45ee14f4887de6e13b465c5f613f07ab0495b4657788402ba879b77 |
File details
Details for the file tok715-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: tok715-0.0.2-py3-none-any.whl
- Upload date:
- Size: 63.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.13 Darwin/23.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f17ce7841b6761c5f6b958b3818bcd7fe07fcc80a0e2d4249168fbb6e402f68 |
|
MD5 | e3a02edfce5bc955515fb716a5240c04 |
|
BLAKE2b-256 | 18be8bc83131f69111339719bbfa1457ae3d3d6f0050534913447d361bc4b3ab |