Voicenote

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Installation: Added Dependencies)
(-cat)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
This page is a draft description / to-do list for my 1st application "voicenote"
 
This page is a draft description / to-do list for my 1st application "voicenote"
  
= Voicenote =
+
= Voicenote 0.4=
 
[[Image:Voicenote.png]]
 
[[Image:Voicenote.png]]
 
== Presentation ==
 
== Presentation ==
'''Voicenote''' is a software which allows to record any sound from the microphone into a wav file. It is intended to be an easy and quick way to do so.
+
'''Voicenote''' is a script which allows to record any sound from the microphone into a wav file. It can play the created files too. It is intended to be an easy and quick way to do so.
  
It is based on the '''arecord''' / aplay librairy and use the alsactl to change the audio scenario ( /usr/share/openmoko/scenarios/voip-handset.state restore is used)
+
It is based on the '''arecord''' / aplay librairy and use the '''alsactl''' to change the audio scenario ( /usr/share/openmoko/scenarios/voip-handset.state restore is used) .
 +
 
 +
It uses '''zenity''' as a basic graphical gui.
  
 
== Installation ==
 
== Installation ==
  
 
=== Dependencies ===
 
=== Dependencies ===
You need zenity and alsa-utils-aplay to make it work.  
+
You need '''zenity''' and '''alsa-utils-aplay''' to make it work.
  
=== OM / SHR ===
+
=== OM ===
  
 
So to install it, you can do :
 
So to install it, you can do :
  opkg install http://buildhost.automated.it/OM2007.2/packages/armv4t/zenity_2.20.1-r0_armv4t.ipk alsa-utils-aplay http://www.opkg.org/packages/voicenote_0.1_arm.ipk
+
  opkg install http://buildhost.automated.it/OM2007.2/packages/armv4t/zenity_2.20.1-r0_armv4t.ipk alsa-utils-aplay http://www.opkg.org/packages/voicenote_0.4_arm.ipk
  
 
+
=== SHR ===
For SHR user, you might use the -force-depends option to avoid the error with gtk+fastscaling
+
You have to install some more librairies :
 +
opkg -force-depends install http://buildhost.automated.it/OM2007.2/packages/armv4t/libgnomecanvas-2-0_2.20.0-r0_armv4t.ipk http://buildhost.automated.it/OM2007.2/packages/armv4t/libgailutil18_1.20.0-r0_armv4t.ipk http://buildhost.automated.it/OM2007.2/packages/armv4t/libnotify_0.4.4-r0_armv4t.ipk
 +
Then
 +
opkg install http://buildhost.automated.it/OM2007.2/packages/armv4t/zenity_2.20.1-r0_armv4t.ipk alsa-utils-aplay http://www.opkg.org/packages/voicenote_0.4_arm.ipk
  
 
=== Debian base distributions ===
 
=== Debian base distributions ===
Line 25: Line 30:
 
  apt-get install zenity alsa-utils-aplay
 
  apt-get install zenity alsa-utils-aplay
 
  cd ~
 
  cd ~
  wget http://kimaidou.kilu.de/openmoko/voicenote/voicenote.sh
+
  wget http://kimaidou.kilu.de/openmoko/voicenote/voicenote
  chmod +x voicenote.sh
+
  chmod +x voicenote
 
To launch it, do
 
To launch it, do
 
  cd ~
 
  cd ~
  ./voicenote.sh
+
  ./voicenote
  
 
== Using voicenote ==
 
== Using voicenote ==
* Click on the desktop icon [[Image:Voicenote.png|30px]] called "Voicenote" to load the software
+
* Just click on the desktop icon [[Image:Voicenote.png|30px]] called "Voicenote" to load the software
* '''1st window'''
+
Click Validate to start recording.
+
Then wait for the next window to start speaking
+
You validate then wait for the 2nd window to show up before talking to your phone
+
* '''2nd window:'''
+
Click Validate to STOP recording
+
Just click when you have recorded what you want
+
* '''3rd window:'''
+
Your voice-note has been recorded under the filename
+
It just confirms that the voice note has been recorded, and display the name of the file.
+
  
For now, '''the wav files are saved in the ~/ folder''', with a "voicenote_" prefix and the date and time (YYYY-MM-DD_HH-MI)
+
* Then you have to choose between recording or playing a voice note (a wav file). When finished recording or playing, you go back to this first window. Click "Cancel" to quit the application.
  
For example: '''voicenote_2009-02-20_12-34.wav''' means a this voice note has been recorded at 12:34 the 20th of feb 2009.
+
* For now the wav files are saved with a "voicenote_" prefix and the date and time (YYYY-MM-DD_HH-MI). For example: '''voicenote_2009-02-20_12-34.wav''' means a this voice note has been recorded at 12:34 the 20th of feb 2009.
  
 
== Changelog ==
 
== Changelog ==
=== 2009-02-19 - v0.1 ===
+
=== 2009-03-09 - v0.4 ===
 +
* Added the seconds to each wav file name, eg "voicenote_2009-02-20_12-34-58.wav"
 +
* Repackaged so that it is not broken in opkg.org repository
 +
* Changed /usr/share/voicenote.desktop file = removed "Office" category, so that only one icon appears on the desktop
 +
 
 +
=== 2009-02-25 - v0.3 ===
 +
* Now you can play the wav files from Voicenote
 +
* You go back to the 1st choice window after recording or playing a file. To quit the software, click on the button "Cancel".
 +
 
 +
=== 2009-02-24 - v0.2 ===
 +
2nd version:
 +
* GPL license added
 +
* the user can select the wave files destination folder at the first startup (and then modify it in the file ~/.voicenote/voicenote.cfg
 +
* the wave file is now recorded in mono at 8000 kHz (which saves a lot of CPU and bytes)
 +
* addition of comments in the script
 +
* the script is called "voicenote", and not anymore "voicenote.sh"
 +
 
 +
=== 2009-02-19 - v0.1 ===
 
initial version
 
initial version
  
  
== Futur improvement / To do list ==
+
== Future improvements / To do list ==
* add the GPL license
+
* add the GPS date and time information (+/- latitude and longitude) so that each wav file can be used for OpenStreetMap mapping.
 +
* improve the quality of the sound
 
* add a README text file
 
* add a README text file
 
* package it for debian
 
* package it for debian
* add the GPS date and time information (+/- latitude and longitude) so that each wav file can be used for OpenStreetMap mapping.
 
 
* allow the user to choose the microphone source (headset or handset)
 
* allow the user to choose the microphone source (headset or handset)
* config file to choose the target folder and the filename (+ other things)
+
* allow the user to choose the state file for playing the wave files.
* find a solution to double the sound to the left side (it is now in mono, but only on the right)
+
* enable job control (set -m in th script)
* propose an after (or real-time) ogg compression to save space. (any idea ?)
+
* a front-end listing all the recorded voice notes, with a button to play one of them
+
 
* more language
 
* more language
 
* replace zenity by a real frontend as EFL ?
 
* replace zenity by a real frontend as EFL ?
 +
 +
[[Category:Audio Applications]]

Latest revision as of 11:37, 19 July 2009

This page is a draft description / to-do list for my 1st application "voicenote"

Contents

[edit] Voicenote 0.4

Voicenote.png

[edit] Presentation

Voicenote is a script which allows to record any sound from the microphone into a wav file. It can play the created files too. It is intended to be an easy and quick way to do so.

It is based on the arecord / aplay librairy and use the alsactl to change the audio scenario ( /usr/share/openmoko/scenarios/voip-handset.state restore is used) .

It uses zenity as a basic graphical gui.

[edit] Installation

[edit] Dependencies

You need zenity and alsa-utils-aplay to make it work.

[edit] OM

So to install it, you can do :

opkg install http://buildhost.automated.it/OM2007.2/packages/armv4t/zenity_2.20.1-r0_armv4t.ipk alsa-utils-aplay http://www.opkg.org/packages/voicenote_0.4_arm.ipk

[edit] SHR

You have to install some more librairies :

opkg -force-depends install http://buildhost.automated.it/OM2007.2/packages/armv4t/libgnomecanvas-2-0_2.20.0-r0_armv4t.ipk http://buildhost.automated.it/OM2007.2/packages/armv4t/libgailutil18_1.20.0-r0_armv4t.ipk http://buildhost.automated.it/OM2007.2/packages/armv4t/libnotify_0.4.4-r0_armv4t.ipk

Then

opkg install http://buildhost.automated.it/OM2007.2/packages/armv4t/zenity_2.20.1-r0_armv4t.ipk alsa-utils-aplay http://www.opkg.org/packages/voicenote_0.4_arm.ipk

[edit] Debian base distributions

I have not made a package yet. So if you want to try it, you have to use the script alone :

apt-get install zenity alsa-utils-aplay
cd ~
wget http://kimaidou.kilu.de/openmoko/voicenote/voicenote
chmod +x voicenote

To launch it, do

cd ~
./voicenote

[edit] Using voicenote

  • Just click on the desktop icon Voicenote.png called "Voicenote" to load the software
  • Then you have to choose between recording or playing a voice note (a wav file). When finished recording or playing, you go back to this first window. Click "Cancel" to quit the application.
  • For now the wav files are saved with a "voicenote_" prefix and the date and time (YYYY-MM-DD_HH-MI). For example: voicenote_2009-02-20_12-34.wav means a this voice note has been recorded at 12:34 the 20th of feb 2009.

[edit] Changelog

[edit] 2009-03-09 - v0.4

  • Added the seconds to each wav file name, eg "voicenote_2009-02-20_12-34-58.wav"
  • Repackaged so that it is not broken in opkg.org repository
  • Changed /usr/share/voicenote.desktop file = removed "Office" category, so that only one icon appears on the desktop

[edit] 2009-02-25 - v0.3

  • Now you can play the wav files from Voicenote
  • You go back to the 1st choice window after recording or playing a file. To quit the software, click on the button "Cancel".

[edit] 2009-02-24 - v0.2

2nd version:

  • GPL license added
  • the user can select the wave files destination folder at the first startup (and then modify it in the file ~/.voicenote/voicenote.cfg
  • the wave file is now recorded in mono at 8000 kHz (which saves a lot of CPU and bytes)
  • addition of comments in the script
  • the script is called "voicenote", and not anymore "voicenote.sh"

[edit] 2009-02-19 - v0.1

initial version


[edit] Future improvements / To do list

  • add the GPS date and time information (+/- latitude and longitude) so that each wav file can be used for OpenStreetMap mapping.
  • improve the quality of the sound
  • add a README text file
  • package it for debian
  • allow the user to choose the microphone source (headset or handset)
  • allow the user to choose the state file for playing the wave files.
  • enable job control (set -m in th script)
  • more language
  • replace zenity by a real frontend as EFL ?
Personal tools

This page is a draft description / to-do list for my 1st application "voicenote"

Voicenote

Voicenote.png

Presentation

Voicenote is a software which allows to record any sound from the microphone into a wav file. It is intended to be an easy and quick way to do so.

It is based on the arecord / aplay librairy and use the alsactl to change the audio scenario ( /usr/share/openmoko/scenarios/voip-handset.state restore is used)

Installation

Dependencies

You need zenity and alsa-utils-aplay to make it work.

OM / SHR

So to install it, you can do :

opkg install http://buildhost.automated.it/OM2007.2/packages/armv4t/zenity_2.20.1-r0_armv4t.ipk alsa-utils-aplay http://www.opkg.org/packages/voicenote_0.1_arm.ipk


For SHR user, you might use the -force-depends option to avoid the error with gtk+fastscaling

Debian base distributions

I have not made a package yet. So if you want to try it, you have to use the script alone :

apt-get install zenity alsa-utils-aplay
cd ~
wget http://kimaidou.kilu.de/openmoko/voicenote/voicenote.sh
chmod +x voicenote.sh

To launch it, do

cd ~
./voicenote.sh

Using voicenote

  • Click on the desktop icon Voicenote.png called "Voicenote" to load the software
  • 1st window
Click Validate to start recording.
Then wait for the next window to start speaking

You validate then wait for the 2nd window to show up before talking to your phone

  • 2nd window:
Click Validate to STOP recording

Just click when you have recorded what you want

  • 3rd window:
Your voice-note has been recorded under the filename

It just confirms that the voice note has been recorded, and display the name of the file.

For now, the wav files are saved in the ~/ folder, with a "voicenote_" prefix and the date and time (YYYY-MM-DD_HH-MI)

For example: voicenote_2009-02-20_12-34.wav means a this voice note has been recorded at 12:34 the 20th of feb 2009.

Changelog

2009-02-19 - v0.1

initial version


Futur improvement / To do list

  • add the GPL license
  • add a README text file
  • package it for debian
  • add the GPS date and time information (+/- latitude and longitude) so that each wav file can be used for OpenStreetMap mapping.
  • allow the user to choose the microphone source (headset or handset)
  • config file to choose the target folder and the filename (+ other things)
  • find a solution to double the sound to the left side (it is now in mono, but only on the right)
  • propose an after (or real-time) ogg compression to save space. (any idea ?)
  • a front-end listing all the recorded voice notes, with a button to play one of them
  • more language
  • replace zenity by a real frontend as EFL ?