allie
Advanced tools
| Metadata-Version: 1.1 | ||
| Name: allie | ||
| Version: 1.1.1 | ||
| Version: 1.1.2 | ||
| Summary: Biblioteca de inteligência artificial | ||
@@ -5,0 +5,0 @@ Home-page: https://youtube.com/tdcprojetos |
+40
-4
@@ -20,3 +20,5 @@ import wikipedia | ||
| engine = pyttsx3.init() | ||
| polly = boto3.client('polly') | ||
| global polly | ||
| polly = None | ||
| ########################## | ||
@@ -46,2 +48,5 @@ SpeakError = False | ||
| global name1 | ||
| global polly | ||
| if(confg['voiceType'] == True): | ||
| polly = boto3.client('polly') | ||
| volume1 = confg['volume'] | ||
@@ -135,2 +140,4 @@ voice1 = confg['voice'] | ||
| pass | ||
| except botocore.exceptions.EndpointConnectionError: | ||
| print('Error') | ||
@@ -144,5 +151,28 @@ elif op == 'configVoiceType': | ||
| confg['voiceType'] = True | ||
| print('Success setup') | ||
| break | ||
| print('if voiceType is local report voiceID or voiceType online report voiceName') | ||
| if(aux == '1'): | ||
| while True: | ||
| try: | ||
| voice = (input('Voice: ')) | ||
| voice = int(voice) | ||
| print('Success setup') | ||
| confg['voice'] = voice | ||
| break | ||
| except ValueError: | ||
| print('Previous information does not look like an ID') | ||
| else: | ||
| while True: | ||
| try: | ||
| voice = str(input('Voice: ')) | ||
| if(int(voice) >= 0): | ||
| aux = '' | ||
| aux += 1 | ||
| except TypeError: | ||
| print('Previous information does not look like a VoiceName') | ||
| except ValueError: | ||
| print('Success setup') | ||
| confg['voice'] = voice | ||
| break | ||
| elif op == 'configVolume': | ||
@@ -407,3 +437,6 @@ vol = int(input('Volume: ')) | ||
| else: | ||
| engine.setProperty('voice', voice1) | ||
| voic = engine.getProperty('voices') | ||
| engine.setProperty('rate', 140) | ||
| engine.setProperty('volume', 0.9) | ||
| engine.setProperty('voice', voic[voice1].id) | ||
| engine.say(text) | ||
@@ -477,2 +510,3 @@ engine.runAndWait() | ||
| player = instance.media_player_new() | ||
| player.audio_set_volume(volume1) | ||
| player.set_media(media) | ||
@@ -517,2 +551,4 @@ player.play() | ||
| if(confg['voice'] == True): | ||
| polly = boto3.client('polly') | ||
@@ -519,0 +555,0 @@ |
@@ -1,1 +0,1 @@ | ||
| {"ALLIEStatus": false, "voice": 0, "name": "klinsman", "volume": 123, "voiceType": false} | ||
| {"ALLIEStatus": true, "name": "klinsman", "volume": 70, "voice": "Mathieu", "voiceType": true} |
+1
-1
| Metadata-Version: 1.1 | ||
| Name: allie | ||
| Version: 1.1.1 | ||
| Version: 1.1.2 | ||
| Summary: Biblioteca de inteligência artificial | ||
@@ -5,0 +5,0 @@ Home-page: https://youtube.com/tdcprojetos |
+1
-1
@@ -5,3 +5,3 @@ from setuptools import setup | ||
| setup(name='allie', | ||
| version='1.1.1', | ||
| version='1.1.2', | ||
| description='Biblioteca de inteligência artificial', | ||
@@ -8,0 +8,0 @@ url='https://youtube.com/tdcprojetos', |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
175835
1.16%566
6.39%