extend macOS speech commands
Project description
Installation
$ [sudo] pip install mac-speech-commands
Functions
function | __doc__ |
---|---|
mac_speech_commands.replace(text, functions) |
replace speech commands in text with functions output |
Examples
russian minutes plural:
import mac_speech_commands
import plural_ru
def ru_minutes(value):
return "%s %s" % (value.replace("1","одну"),plural_ru.ru(int(value),['минуту','минуты','минут']))
text="... длится [[ru:minutes 10]]"
functions = {"ru:minutes":ru_minutes}
mac_speech_commands.replace(text,functions)
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
Close
Hashes for mac-speech-commands-2019.4.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a1e0dd80ac6fb571c2cf70d5b21be14bcb4561103905ec07bb02726182d7b75 |
|
MD5 | e4d55b15c30d17eecb9260c462a92845 |
|
BLAKE2b-256 | 43ed576dc2ba203176257c00021ad22c970d91899a94a20c518cbcbb0ce6fe6c |