MCPcopy Create free account
hub / github.com/53AI/53AIHub / normalizeRecordingTargetFormat

Function normalizeRecordingTargetFormat

api/service/recording_transcoder.go:251–257  ·  view source on GitHub ↗
(targetFormat string)

Source from the content-addressed store, hash-verified

249}
250
251func normalizeRecordingTargetFormat(targetFormat string) string {
252 targetFormat = strings.ToLower(strings.TrimSpace(strings.TrimPrefix(targetFormat, ".")))
253 if targetFormat == "" {
254 return "m4a"
255 }
256 return targetFormat
257}
258
259func encoderForRecordingTargetFormat(targetFormat string) (string, error) {
260 switch normalizeRecordingTargetFormat(targetFormat) {

Callers 4

TranscodeMethod · 0.85
TranscodeFromFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected