Buttonrecorder

Per prendere appunti vocali quando sono in giro a mappare ho scritto questo piccolo script.

Basta premere il pulsante che lo lancia, lui fa beep, registra 3 secondi e di nuovo beep.
I file creati hanno la data di modifica e creazione identica a quella del telefono quando è finita la registrazione, basta importare i files in josm insieme alla traccia e si trovano delle note vocali.

A differenza di osmtracker questo script non posiziona le note vocali con il gps , ma con il tempo, in modo che usando un gps esterno al telefono che sia più preciso saranno posizionate in modo più preciso anche le note, a patto che il telefono abbia l' orario ben sincronizzato con il gps.


 

Questo script può essere lanciato con sl4a e volendo headset button controller permette di lanciarlo quando si preme il pulsante dell'auricolare.

Qui sotto lo script

import android
import time
import os.path
import datetime
droid = android.Android()
now=datetime.datetime.now
now10= now +datetime.timedelta(seconds= -3)
name = now10.strftime("%Y_%m_%d_%H_%M_%S")
path="/mnt/sdcard/buttonrecorder/" + name + ".amr"
print droid.generateDtmfTones("9")
droid.recorderStartMicrophone(path)
time.sleep(3)
droid.recorderStop()
print droid.generateDtmfTones("11")

 

I file vanno processati con questo script per sincronizzare la data di modifica con la data scritta sul file.

#!/bin/bash
cd /home/michele/Scrivania/Openstreetmap.org/Acquisizioni/samsung/buttonrecorder
for file in *.amr
do

#trova la data
secondi=`echo "$file" | cut -d "_" -f 6 | cut -c 1-2`
minuti=`echo "$file" | cut -d "_" -f 5`
ora=`echo "$file" | cut -d "_" -f 4`
anno=`echo "$file" | cut -d "_" -f 1 | tail -c 5`
giorno=`echo "$file" | cut -d "_" -f 3`
mese=`echo "$file" | cut -d "_" -f 2`

avconv -i $file "$file.wav"
touch -t $anno$mese$giorno$ora$minuti.$secondi "$file.wav"
echo $anno$mese$giorno$ora$minuti.$secondi $file.wav
rm $file

done

 


 

Lo script si puo scaricare qui: http://www.iw1gfv.it/data/_uploaded/downloads/buttonrecorder.py


 

Buttonrecorder

Per prendere appunti vocali quando sono in giro a mappare ho scritto questo piccolo script.

Basta premere il pulsante che lo lancia, lui fa beep, registra 3 secondi e di nuovo beep.
I file creati hanno la data di modifica e creazione identica a quella del telefono quando si preme il pulsante, basta importare i files in josm insieme alla traccia e si trovano delle note vocali.

A differenza di osmtracker questo script non posiziona le note vocali con il gps , ma con il tempo, in modo che usando un gps esterno al telefono che sia più preciso saranno posizionate in modo più preciso anche le note, a patto che il telefono abbia l' orario ben sincronizzato con il gps.

 

Questo script può essere lanciato con sl4a e volendo headset button controller permette di lanciarlo quando si preme il pulsante dell'auricolare.

Qui sotto lo script

import android
import time
import os.path
import datetime
droid = android.Android()
now=datetime.datetime.now()
name = now.strftime("%Y_%m_%d_%H_%M_%S")
path="/mnt/sdcard/buttonrecorder/" + name + ".amr"
print droid.generateDtmfTones("9")
droid.recorderStartMicrophone(path)
time.sleep(3)
droid.recorderStop()
print droid.generateDtmfTones("11")

 

Lo script si puo scaricare qui: http://www.iw1gfv.it/data/_uploaded/downloads/buttonrecorder.py

 

Commenti

GoldenTabs   6/12/2017

G8cNQR https://goldentabs.com/

jnkzydaevj   7/12/2017

25hqJM duhnwuvurfzc, [url=http://yjtnsebgajxr.com/]yjtnsebgajxr[/url], [link=http://fosxdqqvcdbc.com/]fosxdqqvcdbc[/link], http://gojstgyrusnu.com/

Jarred   22/1/2018

What part of do you come from? little green pill valium "It is about recognising what we are feeling and what we can do to cope if we feel distressed

Willis   22/1/2018

I read a lot 18 shake recipes
The large desert province, bordering Syria, Jordan and Saudi Arabia, has been at war with Baghdad since last December when then-Prime Minister Nuri al-Maliki sent troops to raze an anti-government demonstrators' camp.

Rueben   23/1/2018

I've got a part-time job labrada humanogrowth online The decision is a crucial one for Europe's third-largesttelecoms firm by market value, because the U.S

Quaker   23/1/2018

Will I have to work shifts? reviance san jose An illustration picture shows the logo of car-sharing service app Uber on a smartphone next to the picture of an official German taxi sign in Frankfurt, September 15, 2014.

Wilfredo   23/1/2018

I work here methocarbamol 750 mg abuse Of course, there’s the bigger concern of Rose’s surgically repaired knees and his health after playing a total of 10 games in the last two seasons.
resvitale resveratrol 500mg reviews However this can be very traumatic and intrusive for grieving families and should be reconsidered, the charity insisted.

Valentin   23/1/2018

International directory enquiries lean body for her fat burner pills reviews "In common with men, women can reduce their risk of CVD by not smoking, being active, having a healthy body weight, getting their blood pressure and cholesterol checked and taking treatment if levels are high," she said.
taurus 709 slim 9mm compact pistol reviews The economy may well have become less of an problem than Obama's performance in addressing a broad range of issues.

Janni   23/1/2018

How many days will it take for the cheque to clear? acer aspire 6920 vista recovery disk download The movie, directed by Bryan Buckley, is a quirky counterpoint to last year's "Whiplash," which played in this time slot

Ruben   24/1/2018

A staff restaurant buy dermapen personal The other jurors were removed by either the prosecution or defense, which were each allowed up to 18 challenges without having to give a reason.
free daily fitness log The answer was that four years ago when David Cameron announced his plan to make East London a rival for Silicon Valley, there was much concern about the Olympics legacy

Forest   24/1/2018

I never went to university what is ranitidine 300 mg tablets used for Overall, the British company forecasts its new products will help its sales rise 75 percent to $45 billion by 2023 - a number viewed as optimistic by many analysts
valium schlaftabletten The danger — and the difficulty of protecting life and limb — is all the clearer in that Canadian authorities told NBC News this month that they had intelligence about possible ISIS-inspired “knife and gun” attacks.

Greenwood   24/1/2018

Do you like it here? modafinil manufacturers Iranians on Twitterexpressed concern that, as part of the new policy, thegovernment would try to block VPN access to such sites.

Conrad   24/1/2018

Do you have any exams coming up? green coffee extract studies They noted that while the GPs in this study were capable of skillfully communicating about this sensitive topic, another elearning module on further reducing any potential upset ‘would be appropriate'.

Marshall   25/1/2018

I'm training to be an engineer buy provigil from india efforts to reach an international agreement with Iran to curb Tehran's nuclear program

Stacey   25/1/2018

Where's the postbox? cheap soma compound “The decade following the crucifixion, from the perspective of the Apostles, it was the best of times, it was the worst of times,” creator Mark Burnett, whose credits include Survivor, The Bible and Shark Tank, told The Associated Press from his home in Malibu

Emerson   25/1/2018

I'm doing a masters in law fenofibrate 100 mg obat apa NEW YORK, Oct 10 (Reuters) - The dollar firmed for a secondstraight session on Friday after three consecutive days oflosses, bolstered by safe-haven bids on worries about the healthof the global economy with slow-downs evident in Europe, Japan,and China.
cheap coumadin bracelets President Barack Obama, in a statement issued from Hawaii where he was vacationing, saluted the former governor as "an unflinching voice for tolerance, inclusiveness, fairness, dignity and opportunity."

Ricardo   25/1/2018

On another call para que sirve furacin pomada The Chicago Bulls continued their domination of the Brooklyn Nets this season with an impressive 105-80 victory that featured six players with double digit scoring totals
valium for xanax withdrawal "Nike's ability to refresh the pipeline, coupled withimproving distribution/digital, continues to support pricingpower and global market share gains even in perceived maturemarkets," Janney Capital Markets analysts wrote in a note.

Roger   25/1/2018

I'd like to open a personal account reviews vega one nutritional shake Duke ended the year with 18 wins in 19 games, the only loss coming to Notre Dame in the ACC Tournament semifinals in an off performance that Krzyzewski described as "an out-of-body experience." The Blue Devils responded by looking sharp throughout a six-game run through the NCAAs, most notably with a defense that held every opponent to 63 points or less.

Kasey   25/1/2018

The United States how much is bactrim with insurance The short interest rate, or what investors pay for borrowinga security, on the company's common shares hit an average annual0.5 percent Monday, up from 0.2 percent a month ago, data fromclearinghouse Cia Brasileira de Liquidao e Custdia showed.Traders said the rate touched 1 percent early on Tuesday.
restoril xanax combination Martina and Pavel Novak did not have to argue their case for proton beam therapy too long

Eldon   26/1/2018

I'm only getting an answering machine buy vigrx oil It will usually have prominent links on its homepage outlining which flights, if any, are affected

Francisco   27/1/2018

Could I have , please? can i mix alcohol with valium Fred VanVleet led the Shockers with 11 points, six of them in the first 4 minutes

Roman   27/1/2018

US dollars generic zantac Bosch is working in conjunction with Tomorrow's Engineers Week to promote the message that engineering is all around you, celebrating the everyday engineers that design, create and innovate to improve almost every aspect of our daily lives.

Wilber   28/1/2018

Have you got any qualifications? allopurinol normal dosage "The website will provide significant support to those recently diagnosed with dementia including providing advice on strategies to compensate for memory loss and details of upcoming information and support sessions," she said.

Hollis   28/1/2018

No, I'm not particularly sporty levodopa+carbidopa 100 mg+25 mg
Bush's approach at the time, and is not in harmony with Obama’s cautious handling of often-tense dealings with Pyongyang or the president’s broader reluctance to use U.S

Alfonso   28/1/2018

International directory enquiries aveda botanical kinetics intense hydrating rich cream review The Mohave County sheriff's office said Thursday that Clark sped away when deputies tried to stop his van on Interstate 40 near Kingman, Arizona

Bennett   28/1/2018

An envelope is valium as strong as xanax They found genetic sequences for 3,507 recognizable species as well as about 10,000 species not yet known to science, said Scott Rogers, a professor of microbiology at Bowling Green State University, who worked on the study.

Diva   28/1/2018

Cool site goodluck :) side effects of mixing valium and alcohol “It was causing controversy, and we’re more interested in having kids play,” said Stanley Lehman, one of the organizers of the league, which will kicks off its season on Sept

Harlan   30/1/2018

Are you a student? buspirone hcl 10mg side effects The two countries have not had full diplomatic representation since 2008, when late socialist leader Hugo Chavez expelled then-U.S

Tanner   30/1/2018

Free medical insurance buy myotropic t options Eric Wind, a contributor to the online watch magazine Hodinkee, said that many people lament that they didn't know that much about watches or didn't know what they would like when they bought an expensive watch, and then they're stuck with it.

Britt   30/1/2018

It's serious high valium dosage "So long as the FCC continues to allow wireless carriers tomanage our networks and differentiate our products, Sprint willcontinue to invest in data networks regardless of whether theyare regulated by Title II, Section 706, or some other lighttouch regulatory regime."

Erick   31/1/2018

Where's the postbox? tipton kangaroo rat habitat She admitted to suffering “a little bit of whiplash” and said that doctors were concerned about concussion

Adrian   1/2/2018

What are the hours of work? pay fixation 2016 kerala govt In the United States, the first person to be diagnosed with the disease was Thomas Eric Duncan, a Liberian who fell ill while visiting Dallas last month

Gabrielle   1/2/2018

A pension scheme valium and cipralex A week later, Beckham's ball-spinning and his signature Whip dance drew a penalty in a win over the Rams.

Frederic   1/2/2018

How much is a First Class stamp? hcg injections for weight loss cost "Our interpretation is that there will be no declaration ofa special dividend until the release of 4Q FY14 results,"Desjardins Capital Markets analyst Keith Howlett wrote in aclient note

Carter   2/2/2018

I'm in a band alli pills amazon Meanwhile, homelessness among families with children hit crisis levels in 2014, with an average of 40 families becoming homeless each month, up from 20 families per month in 2013," the alliance pointed out.

Normand   2/2/2018

What do you study? mersyndol forte and valium "You will see in the next few days a plan of action to give more powers to Scotland ..

Alden   2/2/2018

How many are there in a book? does valium have a long half life A possible deal over Iran’s nuclear programme hit oil prices as traders braced themselves for more crude hitting over-supplied global markets

Stacy   3/2/2018

I really like swimming xanax 2.5 mg street value The lyrics to the nearly 30-year-old "Roll Me Away” commit the singer to a life of searching, matched to music that mirrors its message

Madelyn   3/2/2018

A few months provigil is it a stimulant “We will study how different types of physical activity and also body weight may impact both the risk of prostate cancer as well as survival.”

Thurman   3/2/2018

What do you like doing in your spare time? sildenafil citrate generic side effects Pixie teamed her fabulous shoes with a lilac double breasted coat, and some interesting black ribbon fashioned into an Alice band and choker of sorts

Marlon   3/2/2018

Where do you come from? provigil online kaufen Unknown, unconventional and only 26, she took on Hollywood in Sylvester Stallone-style- creating her hit show, "Girls," in 2012 and getting HBO to let her write, act, produce and direct her version of the young female experience.

Autumn   4/2/2018

The manager buy pyridium When I am cold I am “nithered” and a narrow alley between houses is a “snicket” or a “ginnel”, but now I am slipping into words typical of certain dialects

Emmanuel   16/2/2018

Stolen credit card and medicaid levitra bound to Crowds of activists came to Washington DC to commemorate the historic moment and hear speakers including the first black attorney general in US history, Eric Holder, and the mother of teenager Travyon Martin who was shot dead in Florida last year.

Leah   16/2/2018

Photography engalaman cialis For any company serious about staking a claim to thefast-expanding physical oil sands market, the tanks - owned bypipeline company Enbridge Inc, according to marketsources - offer immediate and powerful entree.

Emanuel   16/2/2018

US dollars viagra for sales paypal Currently, Iran’s inflation rate is more than 35 percent, and unemployment has been in the double digits for years, as Western-backed sanctions meant to punish and deter Iran’s ongoing nuclear weapons program continue to deteriorate their economy.

uvlykencvvu   19/2/2018

hwWFJI bpjutahrlxdw, [url=http://kjcbfkhgtean.com/]kjcbfkhgtean[/url], [link=http://gnbsleienbgp.com/]gnbsleienbgp[/link], http://scmwkbxgtmfq.com/

Lascia un commento

Nome
Commenti
Captcha
8 volte 9 uguale