Documentation ¶
Index ¶
- func BuildSpeechToTextClient(googleCredentials GoogleCredentials, context context.Context) *speech.Client
- func ConvertToFlac(inputFile, fileId string) []byte
- func DonwloadsMediaVoice(urlFile, fileId string) string
- func TranscriptAudio(speechClient *speech.Client, context context.Context, ...) []string
- type GoogleCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSpeechToTextClient ¶
func BuildSpeechToTextClient(googleCredentials GoogleCredentials, context context.Context) *speech.Client
BuildSpeechToTextClient create the speech client from the Google credentials
func ConvertToFlac ¶
ConvertToFlac converts the file to FLAC audio file
func DonwloadsMediaVoice ¶
DonwloadsMediaVoice downloads the Voice file from the specified URL
Types ¶
type GoogleCredentials ¶
type GoogleCredentials struct { Type string `json:"type"` ProjectID string `json:"project_id"` PrivateKeyID string `json:"private_key_id"` PrivateKey string `json:"private_key"` ClientEmail string `json:"client_email"` ClientID string `json:"client_id"` AuthURI string `json:"auth_uri"` TokenURI string `json:"token_uri"` AuthProviderX509CertURL string `json:"auth_provider_x509_cert_url"` ClientX509CertURL string `json:"client_x509_cert_url"` }
Click to show internal directories.
Click to hide internal directories.