Skip to main content

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 -cid 5201 -t "talktext" --server-url=http://user:password@server_ip:7180

export SERVER_URL=http://user:password@server_ip:7180
jaz_talk_on_server -cid 5201 -t "talktext"

echo "talktext" | jaz_talk_on_server -cid 5201 -f /dev/stdin

jaz_record_talk

Record a talk voice on server, download as a wave file and play on client.

jaz_record_talk -cid 5201 -t "talktext" --server-url=http://user:password@server_ip:7180

export SERVER_URL=http://user:password@server_ip:7180
jaz_record_talk -cid 5201 -t "talktext"

echo "talktext" | jaz_record_talk -cid 5201 -f /dev/stdin

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 てすと

Metadata

Release files for jasmine-zinc 20210903.14

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

Source distribution (sdist)

Source distribution for jasmine-zinc 20210903.14
File Size Uploaded
jasmine_zinc-20210903.14.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jasmine-zinc 20210903.14
File Interpreter ABI Platform
jasmine_zinc-20210903.14-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / jasmine_zinc-20210903.14.tar.gz

Download URL jasmine_zinc-20210903.14.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d391a84b72406d042440d181fea23ed8bd9c9e2c2c2ed88ae9bb58a03d3bda13
BLAKE2b-256 checksum
How to use checksums
a518d65dec3e8f49a972dcfb809861db167960fd839bfc0d5513303a790d2819
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

Release files / jasmine_zinc-20210903.14-py3-none-any.whl

Download URL jasmine_zinc-20210903.14-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73306b7e6aa2ac6e7849b153a8580912dbbffd4fdc8b4317e79912b83ff0c92b
BLAKE2b-256 checksum
How to use checksums
adb2a4b94e38e2b7c8886daacb9bae1f1488c99f1a86bef22b7a9c21427c1fa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
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