Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config ...
func (*Config) ProcessRequest ¶
ProcessRequest generates srt file of audio clip
func (*Config) SetLanguage ¶
func (cfg *Config) SetLanguage(languageCode LangCodeType)
SetLanguage ...
func (*Config) SetSampleRate ¶
SetSampleRate ...
type EncType ¶
type EncType int32
EncType ...
const ( // Not specified. UNSPECIFIED EncType = 0 // Uncompressed 16-bit signed little-endian samples (Linear PCM). LINEAR16 EncType = 1 // `FLAC` (Free Lossless Audio Codec) FLAC EncType = 2 // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. MULAW EncType = 3 // Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000. AMR EncType = 4 // Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000. AMR_WB EncType = 5 // Opus encoded audio frames in Ogg container // `sample_rate_hertz` must be one of 8000, 12000, 16000, 24000, or 48000. OGG_OPUS EncType = 6 // Although the use of lossy encodings is not recommended, if a very low // bitrate encoding is required, `sample_rate_hertz` must be 16000. SPEEX_WITH_HEADER_BYTE EncType = 7 )
EncType values ...
type LangCodeType ¶
type LangCodeType string
LangCodeType ...
const (
EnUS LangCodeType = "en-US"
)
LangCodeType values ...
Click to show internal directories.
Click to hide internal directories.