semvec/pypi-packages huggingface dataset:
pyminor 1.0.0
Cool package.

ï»¿# sss
>An API Management tool written in Python.

[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)
![PyPI](https://img.shields.io/badge/pypi-v1.0.0-blue)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/requests.svg)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/pywol.svg)
![CircleCI branch](https://img.shields.io/circleci/project/github/erberlin/pywol/master.svg)

pyminor allows for API Authorization Management and allows to build REST-Based API with custom JSON syntax.
pyminor can be used as a plugin for many API Repository such as [FRPC](https://github.com/seznam/fastrpc) and many others.

## Installation

```console
$ pip install pyminor
```

## Usage examples
As an API Management Tool :
```console
$ pywool -u api.redacted.com -t "FRPC_BASED" -l -vv
Retrieve list from [api.redacted.com] | AUTHORIZATION: None | BASED: FRPC_TECH
$
$ pywool -u api.redacted.com -t "REST_BASED" -d "JSON" -auth <AUTH_EXAMPLE> -l -vv
Retrieve list from [api.redacted.com] | AUTHORIZATION: <AUTH_EXAMPLE> | BASED: REST_API
$
$ pywool --help
Usage: pywool -u API_URL [OPTIONS]

  API Management for the Pywool package.

  Please don't type any hypertext protocol such as "https://" or "http://" because they can 
  corrupt the results. The standard URL_TYPE is <SUBDOMAIN>.<BASE>.<DOMAIN>:<PORT>

Options:
  -u, --url URL  Please respect the standards described above
  -p, --port PORT      Target port.
  -vv, --verbose
  -t, --technology OPTIONS
  -l, --list
  -b, --build URL Please check documentation to build your own API with Pywool Tool
  -d, --data OPTIONS
  --help                   Show this message and exit.
```
## Why create API Builder and Manager ?
I needed one and this was an opportunity to learn some stuff.

## Meta

 Kevin Jonsson- jonsson.dev@gmail.com

Distributed under the MIT license. See ``LICENSE`` for more information.
msspeech 3.7.12
not official API for Microsoft speech synthesis from Microsoft Edge web browser read aloud
Requires Python: >=3.7,<3.12

# msspeech
not official API for Microsoft speech synthesis from Microsoft Edge web browser read aloud

## Installation

`pip install --upgrade msspeech`

or

`poetry add msspeech`


After updating an already installed library
To update the list of voices, run the command in your terminal:

`msspeech-update-voices`

or

`poetry run msspeech-update-voices`


## Notes
### Bad news

Since the first of July 2022,
the list of voices and the API as a whole has been very much limited!

### But there is also good news

They returned back some male voices and added new languages, as well as made support for emotional styles.
Despite the fact that styles appeared in JSON, you still won't be able to use them, SSML does not perceive them.
SSML is very limited here, so there is no point in supporting it.

The official documentation is not suitable for this API. It seems this API uses **undocumented** SSML markup.

https://docs.microsoft.com/ru-ru/azure/cognitive-services/speech-service/language-support#text-to-speech

## Using
the pitch and rate values are set as a percentage from -100 to +100,
that is, it can be a negative, positive number, or zero for the default value.

examples: -30, 40, 0


The volume should be a fractional number from 0.1 to 1.0, but in fact it doesn't work for some reason.


The maximum synthesize text length is approximately 31000 characters per request.

### from CLI

synthesize text:

`msspeech Guy hello --filename audio.mp3`

update voices list:

`msspeech-update-voices`

### From python
```python
import asyncio
from msspeech import MSSpeech


async def main():
	mss = MSSpeech()
	print("Geting voices...")
	voices = await mss.get_voices_list()
	print("searching Russian voice...")
	for voice in voices:
		if voice["Locale"] == "ru-RU":
			print("Russian voice found:", voice["FriendlyName"])
			await mss.set_voice(voice["Name"])


	print("*" * 10)
	filename = "audio.mp3"
	# with open("s.txt", encoding="UTF8") as f: text:str = f.read()
	text = "Или написать текст здесь"
	print("waiting...")
	await mss.set_rate(10)
	await mss.set_pitch(0)
	await mss.set_volume(1.0)
	await mss.synthesize(text.strip(), filename)
	print("*"*10)
	print("SUCCESS! OK!")
	print("*"*10)

if __name__ == "__main__":
	asyncio.run(main())
```