How to enable Beta features for Google Speech-to-Text with Python

It’s a straightforward two-step process.

One: make sure you have version 1.0.0 or later of google-cloud-speech (use !pip freeze | grep google-cloud-speech)

Two: Instead of importing the client libraries like

from import speech
from import enums, types

import them like

from import speech_v1p1beta1 as speech, storage
from import enums, types

The beta features should now be available for you to use.