mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-10 09:02:49 +00:00
changes for public use
This commit is contained in:
@@ -113,8 +113,9 @@ func loadFile(fileName string) error {
|
||||
|
||||
fmt.Println("Loading file: " + fname + fextension)
|
||||
|
||||
// TODO - check if windows and use "./ffmpeg.exe" - change this if you wish to run on windows
|
||||
// use ffmpeg to convert file into a format we can use
|
||||
cmd := exec.Command("ffmpeg", "-i", config.Config.SoundsPath+fname+fextension, "-f", "s16le", "-ar", strconv.Itoa(frameRate), "-ac", strconv.Itoa(channels), "pipe:1")
|
||||
cmd := exec.Command("./ffmpeg", "-i", config.Config.SoundsPath+fname+fextension, "-f", "s16le", "-ar", strconv.Itoa(frameRate), "-ac", strconv.Itoa(channels), "pipe:1")
|
||||
|
||||
ffmpegout, err := cmd.StdoutPipe()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user