speechapi
Project description
cloudmersive_voicerecognition_api_client
Speech APIs enable you to recognize speech and convert it to text using advanced machine learning, and also to convert text to speech.
This Python package provides a native API client for Cloudmersive Voice Recognition
- API version: v1
- Package version: 4.0.1
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Requirements.
Python 2.7 and 3.4+
Installation & Usage
pip install
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import cloudmersive_voicerecognition_api_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import cloudmersive_voicerecognition_api_client
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import cloudmersive_voicerecognition_api_client
from cloudmersive_voicerecognition_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Apikey
configuration = cloudmersive_voicerecognition_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'
# create an instance of the API class
api_instance = cloudmersive_voicerecognition_api_client.RecognizeApi(cloudmersive_voicerecognition_api_client.ApiClient(configuration))
speech_file = '/path/to/file.txt' # file | Speech file to perform the operation on. Common file formats such as WAV, MP3 are supported.
try:
# Recognize audio input as text using machine learning
api_response = api_instance.recognize_file(speech_file)
pprint(api_response)
except ApiException as e:
print("Exception when calling RecognizeApi->recognize_file: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.cloudmersive.com
Class | Method | HTTP request | Description |
---|---|---|---|
RecognizeApi | recognize_file | POST /speech/recognize/file | Recognize audio input as text using machine learning |
SpeakApi | speak_post | POST /speech/speak/text/basicVoice/{format} | Perform text-to-speech on a string |
SpeakApi | speak_text_to_speech | POST /speech/speak/text/voice/basic/audio | Perform text-to-speech on a string |
Documentation For Models
Documentation For Authorization
Apikey
- Type: API key
- API key parameter name: Apikey
- Location: HTTP header
Author
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
File details
Details for the file cloudmersive_voicerecognition_api_client-4.0.1.tar.gz
.
File metadata
- Download URL: cloudmersive_voicerecognition_api_client-4.0.1.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dec1dd2829b287bfc845e93fea827dcaf4e9c9a80ee4d7d221bdeebd6cbd975 |
|
MD5 | 359c9072ea50bf9e72140c3e8aa3d6fd |
|
BLAKE2b-256 | dcea32bb4f5ea1d46f50cb897571d202667d98907bab91d8185ddbc35201525c |