CapsWriter/安装指南/alibabacloud-nls-python-sdk/ali_speech/constant.py
Haujet Zhao ebbb43e675 init
2020-07-10 16:52:38 +08:00

41 lines
942 B
Python

# -*- coding: utf-8 -*-
"""
* Copyright 2015 Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
"""
class ASRFormat:
PCM = 'pcm'
OPUS = 'opus'
class TTSFormat:
PCM = 'pcm'
WAV = 'wav'
MP3 = 'mp3'
class ASRSampleRate:
SAMPLE_RATE_8K = 8000
SAMPLE_RATE_16K = 16000
class TTSSampleRate:
SAMPLE_RATE_8K = 8000
SAMPLE_RATE_16K = 16000
SAMPLE_RATE_24K = 24000