MCPcopy Create free account
hub / github.com/astercloud/aster / ConvertAudios

Function ConvertAudios

pkg/media/processor.go:146–156  ·  view source on GitHub ↗

ConvertAudios 转换音频列表

(sources []string)

Source from the content-addressed store, hash-verified

144
145// ConvertAudios 转换音频列表
146func ConvertAudios(sources []string) ([]*Audio, error) {
147 audios := make([]*Audio, 0, len(sources))
148 for _, src := range sources {
149 audio, err := NewAudio(src)
150 if err != nil {
151 return nil, err
152 }
153 audios = append(audios, audio)
154 }
155 return audios, nil
156}

Callers

nothing calls this directly

Calls 1

NewAudioFunction · 0.85

Tested by

no test coverage detected