Hello
I keep encountering an error when trying to play an audio file in the shiny app, with this message displayed in the Console
Output #0, wav, to '/tmp/RtmpmMEsdH/filef44e296d3365.wav':
Metadata:
ISFT : Lavf60.16.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
Adding audio frame 1254 at timestamp 58.18sec - audio stream completed!
sh: 1: /tmp/RtmpmMEsdH/tuneRtemp.wav: Permission denied
This is on Ubuntu 24.04 LTS. An audio file is created with full read permissions in /tmp/RtmpmMEsdH (directory name is variable), but the prefix is also variable. Here the prefix is "filef44e296d3365" but the shiny app always looks for "tuneRtemp" as the prefix before the ".wav". I've looked at both the birdnetTools code, and the tuneR code for the play function, and cannot locate an error. The tuneR::play function defaults to tuneRtemp.wav if no filename is given (it appears to write it as a temporary file), but as your code specifies the filename as a temporary file placeholder, puzzled as to what's causing the error.
Many thanks
Roy
Hello
I keep encountering an error when trying to play an audio file in the shiny app, with this message displayed in the Console
Output #0, wav, to '/tmp/RtmpmMEsdH/filef44e296d3365.wav':
Metadata:
ISFT : Lavf60.16.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
Adding audio frame 1254 at timestamp 58.18sec - audio stream completed!
sh: 1: /tmp/RtmpmMEsdH/tuneRtemp.wav: Permission denied
This is on Ubuntu 24.04 LTS. An audio file is created with full read permissions in /tmp/RtmpmMEsdH (directory name is variable), but the prefix is also variable. Here the prefix is "filef44e296d3365" but the shiny app always looks for "tuneRtemp" as the prefix before the ".wav". I've looked at both the birdnetTools code, and the tuneR code for the play function, and cannot locate an error. The tuneR::play function defaults to tuneRtemp.wav if no filename is given (it appears to write it as a temporary file), but as your code specifies the filename as a temporary file placeholder, puzzled as to what's causing the error.
Many thanks
Roy