Page 1 of 1
Audacity configuration just for listen
Posted: Sat Jul 08, 2017 10:01 am
by saveriobaq
Hello,
- I developed a Windows C# application for listen voice recordings, that is going to be used just to listen wav and mp3 voice recordings in different Windows PCs like W7, W8, W10.
- I would like to run Audacity from the command line passing the voice file path as parameter.
- The Audacity configuration I would like to have, should hide most of the menus and buttons. Just to show the transport buttons.
- Also, the default configuration will not allow the user to make any changes to the file.
- Also, I would like to set the window size in the configuration.
Please let me know if this is possible, and point me to the documentation.
Thanks a lot
Saverio
Re: Audacity configuration just for listen
Posted: Sat Jul 08, 2017 10:20 am
by steve
saveriobaq wrote:I developed a Windows C# application for listen voice recordings
Do you mean that you want to develop an application, or that you have already developed the application?
Re: Audacity configuration just for listen
Posted: Sat Jul 08, 2017 10:31 am
by saveriobaq
Hello Steve,
I already have a Windows app that allows the user to browse a directory full of voice recordings (wav, mp3).
The user can set filters in order to display, let's say, just yesterday recordings of agent John.
If the user clicks on one line of that listing I want to play the file.
Regards
Saverio
Re: Audacity configuration just for listen
Posted: Sat Jul 08, 2017 11:13 am
by steve
saveriobaq wrote:I already have a Windows app that allows the user to browse a directory full of voice recordings (wav, mp3).
The user can set filters in order to display, let's say, just yesterday recordings of agent John.
If the user clicks on one line of that listing I want to play the file.
and I presume that you want to use Audacity as the "playback engine".
saveriobaq wrote:I would like to run Audacity from the command line passing the voice file path as parameter.
To launch Audacity and load the audio file:
Code: Select all
audacity "fully-qualified-file-name"
"fully-qualified-file-name" means, the file name including the full file path.
There is no built-in command-line option to start playback, but you could perhaps programmatically generate a spacebar keyboard event (after allowing a suitable pause to allow Audacity to launch and load the file).
saveriobaq wrote:The Audacity configuration I would like to have, should hide most of the menus and buttons. Just to show the transport buttons.
To do this you would need to either modify the Audacity source code and rebuild Audacity, or use an old version of Audacity (2.1.1 or earlier) with a specially crafted language file. The latter option is documented here:
http://manual.audacityteam.org/man/simp ... acity.html but note that this documentation is obsolete and no longer supported. See also this forum thread:
http://forum.audacityteam.org/viewtopic ... 61#p294660
saveriobaq wrote:Also, I would like to set the window size in the configuration.
The window size is set in audacity.cfg which is Audacity's "Preferences" file. See:
http://manual.audacityteam.org/man/pref ... tml#stored
It may actually be easier to just use a command-line application for playing the file, or create a simple HTML interface.
Re: Audacity configuration just for listen
Posted: Sat Jul 08, 2017 11:41 am
by saveriobaq
Thank you very much Steve. You are very kind.
I am going to carefully review the option of using 2.1.1,
Thanks again and best regards
Saveriobaq