Here’s a condensed version of my code:
Var outputFile As FolderItem = soundsFolder.Child(“g” + uniqueID + “.mp3”)
Var outputFilePath As String = outputFile.NativePath
Var ffmpegCmd As String
ffmpegCmd = “/opt/homebrew/bin/ffmpeg -y -f avfoundation -i ":3" -t 5 -ac 1 -b:a 192k "” + outputFilePath + “"”
My app fails to build with the error message:
Type mismatch error. Expected String, but got class Pair
ffmpegCmd = “/opt/homebrew/bin/ffmpeg -y -f avfoundation -i ":3" -t 5 -ac 1 -b:a 192k "” + outputFilePath + “"”
Would anyone have an idea as to why that fourth line is returning a class Pair rather than a String?
Thanks!