Documentation
¶
Overview ¶
Copyright © 2022 AssemblyAI [email protected]
Copyright © 2022 AssemblyAI [email protected]
Index ¶
- Variables
- func BeutifyJSON(data []byte) []byte
- func CallSpinner(message string) *spinner.Spinner
- func CheckForUpdates(currentVersion string)
- func CheckIfTokenValid() bool
- func ConfigFolderExist() bool
- func Contains(s []string, e string) bool
- func CreateConfigFile()
- func GetConfigFileValue(key string) string
- func GetEnvWithKey(key string) *string
- func GetExtension(fileType string) string
- func GetSentenceTimestamps(sentences []string, words []S.SentimentAnalysisResult) []string
- func GetSentenceTimestampsAndSpeaker(sentences []string, words []S.SentimentAnalysisResult) [][]string
- func GetSrtText(words []S.SentimentAnalysisResult) string
- func GetStoredToken() string
- func InitSentry()
- func IsValidFileType(fileType string) bool
- func PollTranscription(id string, flags S.TranscribeFlags)
- func PrintError(props S.PrintErrorProps)
- func QueryApi(path string, method string, body io.Reader, s *spinner.Spinner) []byte
- func SetConfigFileValue(key string, value string)
- func SetUserAlias()
- func SplitSentences(wholeText string, isLineBreeakEnabled bool) []string
- func TelemetryCaptureEvent(event string, properties *S.PostHogProperties)
- func Transcribe(params S.TranscribeParams, flags S.TranscribeFlags)
- func TransformMsToTimestamp(n int64, showMs bool) string
- func UploadFile(path string) string
- func ValidateCustomSpelling(customSpelling []S.CustomSpelling) error
- func YoutubeDownload(id string) string
- type ArrayCategories
Constants ¶
This section is empty.
Variables ¶
View Source
var AAIURL = "https://api.assemblyai.com/v2"
View Source
var ConfigFileName = "config.toml"
View Source
var ConfigFolderPath = ".config/assemblyai"
View Source
var DistinctId string
View Source
var Filename = os.TempDir() + "tmp-video."
View Source
var INVALID_TOKEN = "" /* 136-byte string literal not displayed */
View Source
var PH_TOKEN string
View Source
var SENTRY_DNS string
View Source
var Token string
Functions ¶
func BeutifyJSON ¶
func CallSpinner ¶
func CheckForUpdates ¶ added in v1.12.1
func CheckForUpdates(currentVersion string)
func CheckIfTokenValid ¶
func CheckIfTokenValid() bool
func ConfigFolderExist ¶
func ConfigFolderExist() bool
func CreateConfigFile ¶
func CreateConfigFile()
func GetConfigFileValue ¶
func GetEnvWithKey ¶ added in v1.14.1
func GetExtension ¶ added in v1.16.1
func GetSentenceTimestamps ¶
func GetSentenceTimestamps(sentences []string, words []S.SentimentAnalysisResult) []string
func GetSentenceTimestampsAndSpeaker ¶
func GetSentenceTimestampsAndSpeaker(sentences []string, words []S.SentimentAnalysisResult) [][]string
func GetSrtText ¶ added in v1.17.1
func GetSrtText(words []S.SentimentAnalysisResult) string
func GetStoredToken ¶
func GetStoredToken() string
func InitSentry ¶
func InitSentry()
func IsValidFileType ¶ added in v1.16.1
func PollTranscription ¶
func PollTranscription(id string, flags S.TranscribeFlags)
func PrintError ¶
func PrintError(props S.PrintErrorProps)
func SetConfigFileValue ¶
func SetUserAlias ¶
func SetUserAlias()
func SplitSentences ¶
func TelemetryCaptureEvent ¶
func TelemetryCaptureEvent(event string, properties *S.PostHogProperties)
func Transcribe ¶
func Transcribe(params S.TranscribeParams, flags S.TranscribeFlags)
func TransformMsToTimestamp ¶
func UploadFile ¶
func ValidateCustomSpelling ¶ added in v1.12.1
func ValidateCustomSpelling(customSpelling []S.CustomSpelling) error
func YoutubeDownload ¶
Types ¶
type ArrayCategories ¶
Click to show internal directories.
Click to hide internal directories.