Artificial Intelligence with IBM Watson services and Python


AI is the intelligence carried out by machines. In computer science, an ideal intelligent machine is a flexible agent that perceives its surroundings and carries out actions that maximize its chances of success in some objective or task.

IBM cloud has many services in the cloud, but what we are going to focus on is the set of Artificial Intelligence services.



Currently, IBM has 15 AI services, but we will use only 5:


Language Translator
Neural machine translation is included as standard for each language pair. The customization of the corpus allows you to create your own translation models, which take into account regional or sector-specific terms. Instantly translate your content into multiple languages.



 Speech to Text
The Speech to Text service converts the human voice into written words. It can be used anywhere you need to fill in the gap between the spoken word and the written form, including voice control of the built-in systems, transcription of meetings and teleconferences and the dictation of email and notes.



Text to Speech
The Text to Speech service processes natural text and language to generate full synthesized audio output with the appropriate intonation and cadence. It is available in several voices.



Tone Analyzer
People show different tones, such as joy, sadness, anger and sympathy in their daily communications. These tones can affect the effectiveness of communication in different contexts. Tone Analyzer takes advantage of cognitive linguistic analysis to identify a series of tones at both levels, phrase and document. This information can then be used to refine and improve communications. In the text, it detects three types of tones, including emotion (anger, disgust, fear, joy and sadness), social attitudes (openness, diligence, extroversion, sympathy and emotional range), and language styles (analytical, safe and hesitant) .



Watson Assistant
Watson Assistant allows you to create conversational interfaces in any application, device or channel.



In the IBM documentation, there are several examples of how these services should be used, in several programming languages, the one that interests us for this project is Python

First of all we must execute the following commands so that Python can communicate with Watson and also other libraries such as Audio:

pip install ibm-watson
pip install pyaudio
pip install wave

Results



Comentarios