Skip to main content

Vernacular Speech API python client

Project description

Python Speech to Text SDK

Python SDK for speech to text APIs. Go here for detailed product documentation.


To install this sdk run:

pip install vernacular-ai-speech

Supported Python Versions

Python >= 3.5

Example Usage

from import speech
from import enums, types

def sample_recognize(access_token, file_path):
        access_token Token provided by for authentication
        file_path Path to audio file e.g /path/audio_file.wav
    speech_client = speech.SpeechClient(access_token)

    audio = types.RecognitionAudio(
        content = open(file_path, "rb").read()

    config = types.RecognitionConfig(
        language_code = "hi-IN",

    response = speech_client.recognize(audio=audio, config=config)

    for result in response.results:
        alternative = result.alternatives[0]
        print("Transcript: {}".format(alternative.transcript))

To see more examples, go to samples.

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

vernacular-ai-speech-0.1.2.tar.gz (13.4 kB view hashes)

Uploaded source

Built Distribution

vernacular_ai_speech-0.1.2-py3.7.egg (29.8 kB view hashes)

Uploaded 3 7

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page