Skip to main content

A Python library for interacting with the Soyle Translation API.

Project description

SoyleApp

SoyleApp is a Python library for interacting with the Soyle Translation API, available at soyle.nu.edu.kz. Before using this library, you must register on the website and obtain an API token. The resources consumed by the library will be tied to your account.

Features

  • Translate text between multiple languages.
  • Convert text into audio with options for male or female voice.

Installation

Once the library is published, install it via pip:

pip install SoyleApp

Usage

Here's how to use the library:

from SoyleApp import SoyleApp

# Create a client with your API token
translator = SoyleApp("your-api-token")

# Translate text to text
translated_text = translator.text_translate(
    source_language="eng", target_language="kaz", text="Hello, world!"
)
print("Translated text:", translated_text)

# Translate text to audio
audio_base16 = translator.audio_translate(
    source_language="eng", target_language="kaz", text="Hello, world!", voice="female"
)

# Save the audio to a file
with open("output_audio.wav", "wb") as audio_file:
    audio_file.write(bytes.fromhex(audio_base16))
print("Audio saved as output_audio.wav")

Note

  • You need to register at soyle.nu.edu.kz to get an API token.
  • All resource usage is tied to your account, so use your token responsibly.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

soyleapp-1.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SoyleApp-1.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file soyleapp-1.1.0.tar.gz.

File metadata

  • Download URL: soyleapp-1.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for soyleapp-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c253f3ab316f5adc5de64e7a6458782865b8c3a17fae369f0310b6056815e3a0
MD5 a0b810606913a3acfe84efaad10d35f5
BLAKE2b-256 c1927b18be4c5b3490a3f35209a804808ce691fb8459b8ddef7e9b2af9033b0b

See more details on using hashes here.

File details

Details for the file SoyleApp-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: SoyleApp-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for SoyleApp-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d848a17fc9c58718296135ec5c11dd4ae2c1b4cfbacb8f4229d08374e1e5669f
MD5 b9a007224250f6d34467d7440b130986
BLAKE2b-256 c3db1a6cdb2a9e6890dc996f2e2a3370ec00090a19cba9e485377d4a6047497e

See more details on using hashes here.

Supported by

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