Skip to main content

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

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

jasmine_zinc-20210903.14.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

jasmine_zinc-20210903.14-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file jasmine_zinc-20210903.14.tar.gz.

File metadata

  • Download URL: jasmine_zinc-20210903.14.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for jasmine_zinc-20210903.14.tar.gz
Algorithm Hash digest
SHA256 d391a84b72406d042440d181fea23ed8bd9c9e2c2c2ed88ae9bb58a03d3bda13
MD5 7d55e9cbe9025d8674dbfb6556c1a338
BLAKE2b-256 a518d65dec3e8f49a972dcfb809861db167960fd839bfc0d5513303a790d2819

See more details on using hashes here.

File details

Details for the file jasmine_zinc-20210903.14-py3-none-any.whl.

File metadata

  • Download URL: jasmine_zinc-20210903.14-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for jasmine_zinc-20210903.14-py3-none-any.whl
Algorithm Hash digest
SHA256 73306b7e6aa2ac6e7849b153a8580912dbbffd4fdc8b4317e79912b83ff0c92b
MD5 f14a14b15ec2ee1400971672278637eb
BLAKE2b-256 adb2a4b94e38e2b7c8886daacb9bae1f1488c99f1a86bef22b7a9c21427c1fa0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page