I want to implement scripting functionality in sound froge, Silence in the audio that is longer than 0.5 seconds will be automatically clipped to 0.3 seconds. But I can't write scripts. thank you for the help.
I use this script, error,This editing function is not as convenient as adobe audition's automatic search for mute. Adobe Audition can automatically find the silence, and automatically shorten the set silence time. But I don't want to use both software at the same time.
————————————————————————————————
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. at SoundForge.ISfFileHost.InsertSilence(Int64 ccStart, Int64 ccLength) at EntryPoint.Begin(IScriptableApp app) at EntryPoint.FromSoundForge(IScriptableApp app) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at SoundForge.ScriptHost.ScriptManager.Run(Assembly asm, String className, String methodName) at SoundForge.ScriptHost.RunScript(String szFile, String szSourceText, EngineType eType, Boolean fCompileOnly, Boolean fDebug)