1# -*- coding: utf-8 -*- # 2# Copyright 2017 Google LLC. All Rights Reserved. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16"""Command group for ml speech.""" 17 18from __future__ import absolute_import 19from __future__ import division 20from __future__ import unicode_literals 21 22from googlecloudsdk.calliope import base 23 24 25@base.ReleaseTracks(base.ReleaseTrack.GA, 26 base.ReleaseTrack.BETA, 27 base.ReleaseTrack.ALPHA) 28class Speech(base.Group): 29 """Use Google Cloud Speech to get transcripts of audio. 30 31 Use Google Cloud Speech to get transcripts of recorded audio, and to 32 get information about long-running speech recognition operations. For 33 audio under 60 seconds, use: 34 35 $ {command} recognize 36 37 For audio 60 seconds or longer, use: 38 39 $ {command} recognize-long-running 40 41 For more information about the Google Cloud Speech API, refer to this 42 guide: https://cloud.google.com/speech/docs/ 43 """ 44