1
autoheader && aclocal && autoconf && automake -a
4
Audio Recorder Applet <https://launchpad.net/rec-applet>
5
Author: Osmo Antero Maatta <osmoma@gmail.com>
7
This is an audio recording applet for the GNOME-desktop. This toolbar-applet allows you to record
1
Audio Recorder Application <https://launchpad.net/audio-recorder>
3
This is an audio recording application for the GNOME and Unity Desktops. This program allows you to record
8
4
your favourite music or audio to a file. It can record audio from your system soundcard, microphones,
9
5
browsers, webcams & more. Put simply; if it plays out of your loudspeakers you can record it.
11
The applet has a timer that can stop the recording at "silence" or given clock time, after time duration
12
or file size. It supports several audio (output) formats such as OGG audio, Flac, MP3 and WAV. The MP3-format
13
requires gstreamer0.10-plugins-ugly* (or newer) packages.
7
It has a timer that can start, stop or pause recording on a given clock time, time period or file size.
8
It can also react to "sound", "voice" and "silence" events.
10
This recorder supports several audio (output) formats such as OGG audio, Flac, MP3 and WAV.
15
12
Please read the README and INSTALL files before compilation.
35
32
libgtk2.0-dev (gtk+-2.0, gdk-2.0 and gthread-2.0 libraries)
36
33
libglib2.0-dev (glib-2.0 library)
37
34
libgconf2-dev (gconf-2.0 library)
38
libpanel-applet2-dev (libpanelapplet-2.0 library)
39
35
libgstreamer0.10-dev (gstreamer-0.10 library)
40
36
libgstreamer-plugins-base0.10-dev (gstreamer-interfaces-0.10 library)
41
37
libgnome-media-dev - (gnome-media-profiles library)
42
38
libpulse-dev (PulseAudio's pulse library)
40
libdbus-1-dev - Simple interprocess messaging system (development headers).
41
libdbus-glib-1-dev - Simple interprocess messaging system (GLib interface).
46
45
The configuration uses Automake/Autoconf tools. The most important files are:
52
51
po/POTFILES.in - Language support. List of source files that has translatable text.
54
53
The general sequence of commands to re-configure the source is:
61
./configure #configure produces the final Makefile (food for make).
61
./configure # configure produces the final Makefile (food for make).
63
make install #run this as root or sudo!
63
sudo make install # run this as root or sudo.
67
Make install will copy the rec-audio executable to /usr/bin directory.
67
"Make install" will copy the audio-recorder executable to /usr/bin directory.
68
68
This default locations can be changed during the ./configure phase.
69
69
Run ./configure --help for more instructions.
71
Pixmap images are copied to /usr/share/pixmaps/rec-applet/.
71
Pixmap images are copied to /usr/share/pixmaps/audio-recorder/.
72
72
Icons are installed to /usr/share/icons/hicolor/48x48/apps/.
74
The HTML help files from rec-applet/data/ are copied to /usr/share/rec-applet/.
76
The applet's server file is copied from "rec-applet/data/rec-applet.server.in.in"
77
to /usr/lib/bonobo/servers/rec-applet.server.
79
Run "pkill gnome-panel" to make GNOME reload the applets configurations.
80
The applet will then become visible in the "Add to panel" list.
83
If you plan to create a Debian/Ubuntu package of this program,
84
read the rec-applet*/debian/README file.
87
Language support by gettext:
88
****************************
90
1) First, translate the "rec-applet.server.in.in" file.
91
You can find this file in the source's rec-applet/data/ folder.
92
The installer vil rename and copy this file to /usr/lib/bonobo/servers/rec-applet.server.
94
2) Tanslate the applet/program itself.
74
The HTML help files from audio-recorder/data/ are by default copied to /usr/share/audio-recorder/.
80
1) First, translate the data/audio-recorder.desktop file.
81
Open it and add your translations to it.
83
gedit data/audio-recorder.desktop
86
2) Tanslate the program itself.
95
87
The language files are saved in the source's po/ directory.
97
89
Each translatable file should be listed in the po/POTFILES.in file. Add names of new code-files there.
99
Translating rec-applet.pot to a new language.
91
Translating audio-recorder.pot to a new language.
101
93
Translate on the Launchpad.
102
Use Launchpad for the translations. Browse to https://translations.launchpad.net/rec-applet
94
Use Launchpad for the translations. Browse to https://translations.launchpad.net/audio-recorder
103
95
Login and open a new language file.
105
97
Important: The translations from the Launchpad are automatically copied/synchronized to the source code's po/ directory.
106
They appear in the http://bazaar.launchpad.net/~osmoma/rec-applet/trunk/files/head:/po/ directory.
107
98
Launchpad does this transfer once a day.
109
3) Add a new language code to "rec-applet/configure.in" file, change the ALL_LINGUAS variable.
100
3) Add a new language code to "audio-recorder/configure.in" file, change the ALL_LINGUAS variable.
110
101
ALL_LINGUAS="de en_AU fi_FI fr hu nb_NO pt pt_BR ru"
113
104
gedit configure.in
115
106
Run these command after you edited the configure.in.
121
Then update the "rec-applet.pot" file by running "make update-po" in the po/ directory.
122
rec-applet.pot contains all translatable _("xxx") strings found in the code. Do:
112
Then update the "audio-recorder.pot" file by running "make update-po" in the po/ directory.
113
audio-recorder.pot contains all translatable _("xxx") strings found in the code. Do:
128
119
It creates binary language files (*.gmo) of each *.po.
130
4) You may also translate the HTML-files (help files) in the rec-applet/data directory.
121
4) You may also translate the HTML-files (help files) in the audio-recorder/data directory.
131
122
If not translated, the program will show the original english text.
133
124
Send new language files to developers for inclusion in the package.
134
See: https://launchpad.net/rec-applet
125
See: https://launchpad.net/audio-recorder
140
131
In Ubuntu you should simply get the "build-essential", "automake" and "autoconf" packages.
142
133
The code is written in c with GDK/GTK+ libraries and it is hosted on the Launchpad at address:
143
https://launchpad.net/rec-applet
134
https://launchpad.net/audio-recorder
145
136
Launchpad uses Bazar (bzr) as the code versioning system. In Ubuntu you should install the "bzr" package.
147
138
Then (very important!) read the README and INSTALL files for further instructions.
150
I use the Gedit for code editing. In the the preferences I set:
151
Tab-stops width to 4, and checkmark the "Insert spaces instead of tabs" option.
141
I use the Gedit for code editing. In the the preferences I set tab-stops width to 4,
142
and checkmark the "Insert spaces instead of tabs" option.
154
145
The program's about-dialog vill show details about the installation directories and locations.
161
To test the applet on the panel, I find this command line very quick & useful
162
$ make && sudo make install; pkill rec-applet
163
Let it reload the applet.
165
It compiles and installs the applet + reloads it.
167
You can also reset the entire panel
168
$ make && sudo make install; pkill gnome-panel
173
You may enable the AUDIO_REC_APPLET_DEBUG directive in the main.c file.
174
It allows you to test the applet in an ordinary GTK-window, instead of toolbar panel.
176
You can also activate the ACTIVE_DEBUGGING directive in the log.h file.
177
Run the src/rec-applet from a terminal window and it vill output debug-information on the command prompt.
154
You may enable the DEBUG_ALL and ACTIVATE_DEBUGGING directives in the src/log.h file.
155
Open src/log.h and enable or disable
158
#define ACTIVE_DEBUGGING
160
Some modules have their own debugging flags. You may enable/disable
161
DEBUG_PLAYER in src/dbus_player.h
162
DEBUG_SKYPE in src/dbus-skype.h
163
DEBUG_LISTENER in src/gst_listener.h
164
DEBUG_TIMER src/timer.h
181
Important resources on the web:
182
http://live.gnome.org/GnomeLove/PanelAppletTutorial
167
Command line options:
168
*********************
169
src/audio-recorder --help
172
audio-recorder [OPTION...] Command line aguments.
175
-w, --show-window Show application window at startup (0=hide main window, 1=force display of main window).
176
-i, --show-icon Show icon on the system tray (0=hide icon, 1=force display of icon).
177
-d, --debug-signal List signal level values in a terminal window (0=do not list values, 1=list values).
180
audio-recorder --show-window=1 --show-icon=0
182
The --show-window and --show-icon are self explanatory.
183
The --debug-signal option can help you to study the signal level from microphones and webcams.
184
The listing will print out several values from the listener (monitoring) process.
185
The most important is the Average RMS value. It is used to set the decibel (dB) or % value in the timer commands.
185
188
Ready-made Debian/Ubuntu packages:
186
189
**********************************
187
See: https://launchpad.net/~osmoma/+archive/rec-applet
190
See: https://launchpad.net/~osmoma/+archive/audio-recorder