Hi,
Consider the following function in lua mod
session:recordFile(file_name, max_len, silence_threshold, silence_secs)
, where [
silence_secs] is the amount of silence to tolerate before ending the recording.
When executing this function with the following parameters
session:recordFile("/tmp/blah.wav", 30000, 10, 10)
and muting the mic on my phone, the recording breaks in ~ 10 seconds.
Here comes the question. How do I know that recording ended because of silence? Do you set any environment variable?
Cheers,
Peter