Overview
conversation is nlp module in IntelliHub . It processes and converts human voice to written text. This can help to analyze spoken words which can be used which other studio services to get sentiments, concepts, entities, etc. It can also generate speech from text that can help to give human touch.
Beginner's Guide
Speech to Text supports up to 100 languages so that the understanding of any language is easy for the user and draw meaningful insights. Translation is useful for transcribing texts into any language. converting text into speech helps users to convert text from unknown language into audio of known language. These services reduces the workload of the person and analysing unstructured data is made easy.
Quickstart
Following : 3 services/APIs are provided by Conversation as part of Release 2.0.0.
Text To Speech : This API converts Text into Speech
Speech To Text : This API converts Speech into Text
Translation : This API translates from one language to another language
APIs
All URIs below are relative to https://studio.spotflock.com
Text To Speech | POST /api/v1/conversation-service/phoenix-conversation/text-to-speech/ |
Speech To Text | POST /api/v1/conversation-service/phoenix-conversation/speech-to-text/ |
Translation | POST /api/v1/conversation-service/phoenix-conversation/translation/ |
Text To Speech
Description
This API would converts text into speech and gives audio content as response. The audio content should be written to a .wav file to play the audio.
URI
POST
/api/v1/conversation-service/text-to-speech/
Headers
api-key | Your App's API Key |
Attributes
text | Text Sentence (String) |
Request Example
{
"text": "He did a terrific job at the construction site"
}
Response
with open("audio.wav", "wb) as f:
f.write(response)
Speech To Text
Description
This Api converts Speech into Text.
URI
POST
/api/v1/conversation-service/speech-to-text/
Headers
api-key | Your App's API Key |
Attributes
file | Audio mp3 or wav audio file |
Response
{
"transcript": "Akash has been a motivational speaker ever since he moved to New Delhi to work for Spotflock."
}
Translation
Description
This API would enable to translate from one language to another
URI
POST
/api/v1/conversation-service/translation/
Headers
api-key | Your App's API Key |
Attributes
text | Text Sentence (String) |
language | Target Language code(String) |
Request Example
{
"text": "how are you?",
"language":"hi"
}
Response
{
"text":"how are you?",
"translated text":"क्या हाल है?",
"source language":"en"
}
Data Usage FAQ
Apart from the pricing plans for Conversion where you consume by API calls, you can also use SCUs to consume Conversion APIs. Below are the SCUs consumed for each service.
APIs | SCUs Consumed |
Speech To Text | 2 |
Text To Speech | 2 |
Translation | 2 |
Release Notes
Folowing are the release notes as part of Release 2.0.0
The Length of the audio file for Speech to Text must be constrained to 3 min.