No project description provided
Project description
Jasmine Zinc
Usage: Module
get_avatars
from jasmine_zinc import get_avatars
avatars = get_avatars(
server_url='http://user:password@server_ip:7180',
)
print(avatars)
talk_on_server
from jasmine_zinc import talk_on_server, Talk
result = talk_on_server(
server_url='http://user:password@server_ip:7180',
cid=5201,
talk=Talk(
talktext='てすと',
),
)
print(result.message)
record_talk
from jasmine_zinc import record_talk, Talk
result = record_talk(
server_url='http://user:password@server_ip:7180',
cid=5201,
talk=Talk(
talktext='てすと',
),
frequency=48000,
)
from playsound import playsound
import tempfile
with tempfile.NamedTemporaryFile() as fp:
fp.write(result.wave_binary)
playsound(fp.name)
Usage: Console Scripts
Environment Variables
SERVER_URL=http://user:password@server_ip:7180
jaz_get_avatars
Fetch avatar list (cid
, name
, etc.). Currently, the output format is work in progress.
jaz_get_avatars --server-url=http://user:password@server_ip:7180
export SERVER_URL=http://user:password@server_ip:7180
jaz_get_avatars
jaz_talk_on_server
Talk on server.
jaz_talk_on_server 5201 "talktext" --server-url=http://user:password@server_ip:7180
export SERVER_URL=http://user:password@server_ip:7180
jaz_talk_on_server 5201 "talktext"
jaz_record_talk
Record a talk voice on server, download as a wave file and play on client.
jaz_record_talk 5201 "talktext" --server-url=http://user:password@server_ip:7180
export SERVER_URL=http://user:password@server_ip:7180
jaz_record_talk 5201 "talktext"
Development: Test Console Scripts
Create .env file
SERVER_URL=http://user:password@server_ip:7180
Execute
./scripts/get_avatars
./scripts/talk_on_server 5201 てすと
./scripts/record_talk 5201 てすと
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
Built Distribution
Close
Hashes for jasmine_zinc-20210903.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 768644f6e91d56a4b9d1d8baf7177c42da8cd39c55e4a24411bd8c58519d2344 |
|
MD5 | 88f5d78a8a41171ccafda2d850e20b95 |
|
BLAKE2b-256 | 9dcec7da056a2b6ce64679230718e6c9dafe8c8176bd7aaac5080a435f0dd471 |