To help improve learning a language
Project description
English Assistant Core
This project is related to the implementation of the English Assistant Application, which helps us to learn English as an assistant. And, Also this package has the ability to translate from English to Persian.
Instruction
-
Install Python.
-
Install English Assistant Core
Windows:
pip install EnglishAssistantCore
Linux:
pip3 install EnglishAssistantCore
Usage
#Get a string as a list.
List = ["Hello"]
#List = ["Hello, I am WinCento and this is a test message for you, which is written with code and by my own library. This library has the ability to speak 1 languages. and can adjust the speaking rate in it."]
#Prepare the text and core.
_text = List[0]
_core = Core()
#Configurate core.
_core.set_voice('en') #language
_core.set_rate(140) #rate
#Speak:
_core.speak(_text)
#Record:
import os
_core.record(_text,os.path.join(os.path.join(os.path.dirname(__file__)),'output.mp3'))
#Tag_spacy:
_tag = _core.find_tag_spacy(_text)
_expo = _core.tag_translator_spacy(_tag)
print(_text+" is "+_expo)
#Tag_pickle(optional):
# _tag = _core.find_tag_pickle(_text)
# _expo = _core.tag_translator_pickle(_tag)
# print(_text+" is "+_expo)
#Translate To Persian - Online
_core.set_translator_lang()
_trans = _core.translate_action(_text)
print(_trans)
#Pronunciation
_pron = _core.find_pronunc(list(filter(None, re.split(r'\s|\.|,', _text))))
print(_pron)
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
englishassistantcore-1.0.4.tar.gz
(30.8 MB
view hashes)
Built Distribution
Close
Hashes for englishassistantcore-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f124cac2f540012d2268855d1c42779614b01b2aeb403b99de053e9acf1ef1 |
|
MD5 | 2efaf08613aa2e2d2a9d9a4cbfc8523a |
|
BLAKE2b-256 | d78b8880ea0ded043083212c5770b8af0cfea0e6c4080ba2e431b288935fa05c |
Close
Hashes for englishassistantcore-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dba9c23ba699bf7378f97cb322cc0f3b1eab6a93a2b4d7d946fc4c28e489b3ae |
|
MD5 | 88127583f9897d5ea7016d7dae01a42b |
|
BLAKE2b-256 | 2aa1410abad46c0ed933ebf27a1f12f3c8d8b3d31b6e5e545dd207c9e4b58234 |