OverflowError
Closed this issue · 4 comments
Recording works, in mono, too. But there is an overflow error...
sopare 1.5.2
DEBUG:sopare.audio_factory:#### Default input device info #####
DEBUG:sopare.audio_factory:defaultSampleRate: 44100.0
DEBUG:sopare.audio_factory:defaultLowOutputLatency: 0.0087074829932
DEBUG:sopare.audio_factory:defaultLowInputLatency: 0.00580498866213
DEBUG:sopare.audio_factory:maxInputChannels: 2
DEBUG:sopare.audio_factory:structVersion: 2
DEBUG:sopare.audio_factory:hostApi: 0
DEBUG:sopare.audio_factory:index: 2
DEBUG:sopare.audio_factory:defaultHighOutputLatency: 0.0348299319728
INFO:sopare.worker:worker queue runner started
DEBUG:sopare.audio_factory:maxOutputChannels: 2
DEBUG:sopare.audio_factory:name: seeed-2mic-voicecard: – (hw:1,0)
DEBUG:sopare.audio_factory:defaultHighInputLatency: 0.0348299319728
INFO:sopare.buffering:buffering queue runner
DEBUG:sopare.recorder:SAMPLE_RATE: 16000
DEBUG:sopare.recorder:CHUNK: 512
INFO:sopare.recorder:start endless recording
INFO:sopare.processing:starting append mode
DEBUG:sopare.filter:New window!
Process buffering queue:
Traceback (most recent call last):
File „/usr/lib/python2.7/multiprocessing/process.py“, line 258, in _bootstrap
self.run()
File „/home/sopare/sopare/buffering.py“, line 43, in run
self.proc.check_silence(buf)
File „/home/sopare/sopare/processing.py“, line 74, in check_silence
self.prepare.prepare(buf, volume)
File „/home/sopare/sopare/prepare.py“, line 126, in prepare
self.tokenize(meta)
File „/home/sopare/sopare/prepare.py“, line 50, in tokenize
self.filter.filter(self.buffer, meta)
File „/home/sopare/sopare/filter.py“, line 126, in filter
chunked_norm = self.get_chunked_norm(nfft)
File „/home/sopare/sopare/filter.py“, line 62, in get_chunked_norm
i += int(progessive)
OverflowError: cannot convert float infinity to integer
INFO:sopare.recorder:Buffering not alive, stop recording
INFO:sopare.recorder:stop endless recording
same error if i read a .wav or .raw file.
I can't test this as this does not happen on my system. Could you please apply the patch (testing branch), test if this does the trick and fix the issue and report back:
diff --git a/sopare/filter.py b/sopare/filter.py index 4f2959a..a082d6b 100644 --- a/sopare/filter.py +++ b/sopare/filter.py @@ -59,7 +59,8 @@ class filtering(): for x in range(0, nfft.size, i): if (self.cfg.hasoption('characteristic', 'START_PROGRESSIVE_FACTOR') and x >= self.cfg.getfloatoption('characteristic', 'START_PROGRESSIVE_FACTOR')): progessive += progessive * self.cfg.getfloatoption('characteristic', 'START_PROGRESSIVE_FACTOR') - i += int(progessive) + if (progessive != float('inf')): + i += int(progessive) if (i > self.cfg.getintoption('characteristic', 'MAX_PROGRESSIVE_STEP')): i = self.cfg.getintoption('characteristic', 'MAX_PROGRESSIVE_STEP') chunked_norm.append( nfft[x:x+i].sum() )
Thx in advance!
did that, here is the new result: (reading from a raw file looks similar)
sopare 1.5.2
DEBUG:sopare.audio_factory:#### Default input device info #####
DEBUG:sopare.audio_factory:defaultSampleRate: 44100.0
DEBUG:sopare.audio_factory:defaultLowOutputLatency: 0.0087074829932
DEBUG:sopare.audio_factory:defaultLowInputLatency: 0.00580498866213
DEBUG:sopare.audio_factory:maxInputChannels: 2
DEBUG:sopare.audio_factory:structVersion: 2
DEBUG:sopare.audio_factory:hostApi: 0
DEBUG:sopare.audio_factory:index: 2
DEBUG:sopare.audio_factory:defaultHighOutputLatency: 0.0348299319728
INFO:sopare.worker:worker queue runner started
DEBUG:sopare.audio_factory:maxOutputChannels: 2
DEBUG:sopare.audio_factory:name: seeed-2mic-voicecard: - (hw:1,0)
DEBUG:sopare.audio_factory:defaultHighInputLatency: 0.0348299319728
INFO:sopare.buffering:buffering queue runner
DEBUG:sopare.recorder:SAMPLE_RATE: 16000
DEBUG:sopare.recorder:CHUNK: 512
INFO:sopare.recorder:start endless recording
INFO:sopare.processing:starting append mode
DEBUG:sopare.filter:New window!
DEBUG:sopare.worker:characteristic = 0 {'volume': 4839, 'peaks': [0, 4, 5, 9, 12, 13, 14, 15, 17, 18, 60, 61, 63], 'df': 89, 'dfm': 2777059, 'fc': 701.7, 'zcr': 0, 'norm': [0.11469894624853137, 0.08986713518569477, 0.0751520465957816, 0.08207445809586915, 0.10692471401666355, 0.10023181794126167, 0.07398862838425076, 0.06298919148500091, 0.09225787723720372, 0.10608851086655537, 0.08222548605380221, 0.09017324867219803, 0.1012460180108802, 0.12189157889704065, 0.11753492459887377, 0.10118635715926923, 0.09705134311403847, 0.10611948562551503, 0.10267196428416422, 0.08657693923051062, 0.077678348420935, 0.08548822096519267, 0.09723661944041992, 0.08485147341200992, 0.07388394785564668, 0.07293192869977597, 0.07577372962937003, 0.0748242584195821, 0.074181027831957, 0.06047339573682069, 0.0615561793065918, 0.06401846670683228, 0.048393546739471216, 0.05447669076276412, 0.05781693101318753, 0.06408647099476146, 0.06790565771548257, 0.06864669305634638, 0.061787564173976295, 0.05575933352861527, 0.06784556537993441, 0.06947516751760568, 0.07141994244167074, 0.07387094320783419, 0.0769192320233679, 0.0780914612432638, 0.07802934397687032, 0.07627319474364337, 0.07991769622452082, 0.07495905173952153, 0.07931213409982112, 0.08153489244200321, 0.08061266721300393, 0.07508773421631892, 0.08099486802870787, 0.07475622465885393, 0.07662676196531251, 0.08449994964655883, 0.08596246307227652, 0.09730894732098624, 0.10408896034813933, 0.10701042717503376, 0.09079584736985781, 0.1032501899607624, 0.09583403865474728, 0.08389483169214518, 0.08207703258618199, 0.08464239119113644, 0.08463792787436379, 0.08454313608787346, 0.07572291198032045, 0.06998981491150956, 0.0781637701490453, 0.08259567837877253, 0.07433741108962598, 0.06252121863012015, 0.0769829974552673, 0.07675056324728936, 0.07467162329298256, 0.06544050958325563, 0.06099591568883996, 0.0716725334865958, 0.07722843675517115, 0.055345926960928875, 0.0500931117695284, 0.06819819839468982, 0.06399454168099816, 0.05544240748069946, 0.05591831674062627, 0.06092122676499637, 0.07254663010640029, 0.06969374991448263, 0.06592169043780167, 0.07970159051523414, 0.08397692494623035, 0.08610622530574644, 0.0757444367892667, 0.08469617005731, 0.09177976047684819, 0.0908163361950452, 0.07851933890848654, 0.07466909534591473, 0.07947906465914047, 0.07522450079771027, 0.0767295396710904, 0.0665670327333426, 0.07585450457934173, 0.07096700738957841, 0.07300799129730912, 0.06907158212072219, 0.06179794479496144, 0.06280984623635562, 0.06110546590874045, 0.0637288147677253, 0.0646006038085683, 0.06856200363104833, 0.07062637834458517, 0.07374543510706874, 0.07316059811369513, 0.0765844712381542, 0.07700794535170793, 0.07392783698881256, 0.0683915541501294, 0.0763878609928224, 0.07993672630722196, 0.07649141592171323, 0.06955368518922882, 0.06506346198162544, 0.07163387085106442, 0.0681279780272544, 0.0521333840442006, 0.05745825193444503, 0.07362494727778911, 0.05817899037325005, 0.045292479959154544, 0.04765263002673608, 0.04952098448633136, 0.05103715743621083, 0.05257044873906785, 0.057000763557434116, 0.059006852380294655, 0.06368754262898974, 0.05744584723705754, 0.06491477422161869, 0.06228448792250769, 0.06533316237389512, 0.056637880615167495, 0.06004739972418084, 0.05620388752389141, 0.06191946896269697, 0.06477364449870314, 0.05630039584698306, 0.05500247392435446, 0.06384407568931595, 0.05876409796426133, 0.053249151405168296, 0.05971702732045944, 0.04964036878419924, 0.05502673453713168, 0.04779002644081238, 0.04524843358935936, 0.03427733213148533, 0.04184337424004907, 0.039010930679403734, 0.03959260448382741, 0.044048200684082196, 0.045807385618732384, 0.052158536353312704, 0.04480983129460133, 0.04504157183938264, 0.04729101873215257, 0.046600473234643815, 0.04678591581221978, 0.052503904267214144, 0.048952899905742246, 0.06253572906892166, 0.06775026314359178, 0.06548644367185147, 0.05891415274452005, 0.059393515535905245, 0.06299464135119764, 0.056976631374866055, 0.049089703633391525, 0.0532194037124917, 0.04948234293931395, 0.05510564286836475, 0.05414459976982195, 0.05568777453466391, 0.05555501610795501, 0.05434949522303792, 0.055317965768587746, 0.04707603732637973, 0.04574051820491331, 0.04900176348991555, 0.04512401633184117, 0.04464002087880673], 'token_peaks': [370564, 96006, 302398, 3133246, 3067203, 2011213]}
DEBUG:sopare.worker:meta = [{'adapting': 2011213, 'token_peaks': [370564, 96006, 302398, 3133246, 3067203, 2011213], 'pos': 6, 'volume': 4839, 'token': 'token', 'silence': 1}]
DEBUG:sopare.worker:characteristic = 1 {'volume': 341, 'peaks': [0, 1, 5, 6, 9, 12, 13, 14, 15], 'df': 92, 'dfm': 1601667, 'fc': 506.6, 'zcr': 0, 'norm': [0.1154551463285911, 0.10728134571382832, 0.09744310631848019, 0.09342049125740305, 0.09288097752824943, 0.10967848990981208, 0.10270944721867202, 0.09448408465329358, 0.09270685499089201, 0.10473660716520478, 0.09118687900799335, 0.0908248783227606, 0.10265379376056345, 0.1022813793290635, 0.12163578978096315, 0.10580872264036362, 0.09734270252238313, 0.08972484052794413, 0.08815414826854993, 0.09595956983978148, 0.08976022673492842, 0.08606523853173775, 0.09018311104426725, 0.0906984504773764, 0.07727702179128797, 0.08337834227084837, 0.08170236210744546, 0.07869644578320176, 0.07507922004922155, 0.07604471162975743, 0.07789259482752864, 0.07703320722175437, 0.07697815417611473, 0.07884907725535388, 0.07041660390000262, 0.07186742925790632, 0.06863565133712478, 0.07597868609840562, 0.07772989667809393, 0.0737076186205976, 0.07390495311858696, 0.07272718243199937, 0.06992017257376099, 0.07164528226958965, 0.07388354191718849, 0.07355233718372577, 0.06666201078371047, 0.0691050237265654, 0.06660174759875326, 0.06997928274174382, 0.07210918656216288, 0.07302656731679086, 0.07572462026313921, 0.07731296511839339, 0.06607297814783891, 0.08115605270964277, 0.08488176361267002, 0.09243384166878321, 0.08328012707740437, 0.09247618544383382, 0.08923792882511632, 0.08768808287900708, 0.07071838418271309, 0.08088345244871528, 0.07669196595134153, 0.07226834849227538, 0.07279976312080454, 0.07100162670747495, 0.07914853125897196, 0.07447856793694868, 0.06599597387045598, 0.06342480262386012, 0.06670268921620076, 0.06432460363199462, 0.05778198197612675, 0.06275981430819941, 0.06384328668961595, 0.06359863883643752, 0.060844414569768294, 0.06126182237111558, 0.05322788162451438, 0.06534740101283192, 0.0644074472713838, 0.05932478558134581, 0.06124576832685136, 0.058473065823130284, 0.06191238431296743, 0.05400297133973388, 0.0530393155475886, 0.04976910586513037, 0.05955043130683312, 0.06449501920751431, 0.06400468680548796, 0.06745828611217712, 0.0639982223671349, 0.07911695280383997, 0.07583577477940313, 0.0790945625198452, 0.0811656022441083, 0.07900576072316388, 0.06371310969838058, 0.05998704980988202, 0.0618948559459521, 0.06442522710427437, 0.06664856249928938, 0.06844616923897373, 0.06873752269149536, 0.06498190405416249, 0.06728284299017083, 0.060018015956375126, 0.062162175852607554, 0.05776966962263892, 0.05733889363078922, 0.05952983248269768, 0.05164057735274509, 0.0547711914653179, 0.06466798604469591, 0.06018099700987287, 0.05534564728451012, 0.05661577085870613, 0.058853048130511544, 0.05904287308819795, 0.051560797798465265, 0.054684508579818276, 0.05663619522695078, 0.061453105702022955, 0.05464273056070049, 0.059414503502643844, 0.05673436799586322, 0.06056467934723787, 0.05510639213332998, 0.06360615211312785, 0.06474201077004817, 0.06198440744987996, 0.060481863863139314, 0.06068312067841245, 0.05301276236001038, 0.06194248247290684, 0.06117237520815289, 0.06489874278076718, 0.062263665947685204, 0.059130188352454434, 0.061180414534377885, 0.0506167465291659, 0.06289412287800421, 0.05626853259270454, 0.056525265369504786, 0.06359219480068395, 0.061179707242986436, 0.06501963267742468, 0.06703449072505209, 0.0619465364832086, 0.06599520153118998, 0.06835324678732466, 0.06552583673585885, 0.07478942165961008, 0.07464160862354448, 0.0597845811753978, 0.06932500525121181, 0.07123354292295905, 0.055922932211517715, 0.05925770845664828, 0.06559989474431943, 0.07398072847080643, 0.06861324292104432, 0.05593095245255617, 0.05576741907450932, 0.052732430535968024, 0.062114022268116305, 0.05330185437732285, 0.050468419918942964, 0.06441668105415306, 0.06495894562936584, 0.06135200023330811, 0.05261592214413117, 0.06338122693383387, 0.07020084134279757, 0.0642709382278024, 0.06515895941484391, 0.062437022273830065, 0.057341668232588, 0.06019813243006626, 0.0577763152247936, 0.07025513761450808, 0.06649660468122502, 0.06814824119814733, 0.06395104387778341, 0.06486487721805242, 0.07048813730129952, 0.06226552403261632, 0.06599033178345506, 0.06792617821248063, 0.0686503176295659, 0.0663010010320351, 0.07182433246017074, 0.07359830185844875], 'token_peaks': [1558614, 778267, 431315, 319016, 193540, 145057]}
DEBUG:sopare.worker:meta = [{'adapting': 145057, 'token_peaks': [1558614, 778267, 431315, 319016, 193540, 145057], 'pos': 12, 'volume': 341, 'token': 'token', 'silence': 7}]
DEBUG:sopare.worker:characteristic = 2 {'volume': 353, 'peaks': [], 'df': 89, 'dfm': 34295, 'fc': 563.9, 'zcr': 0, 'norm': [0.09686979164513772, 0.0939675738951597, 0.08657963346537181, 0.08695482192714014, 0.08369041710203992, 0.09347580691966705, 0.08478802713928289, 0.08771873783399801, 0.08508888657281581, 0.08811717655271548, 0.08870762392792028, 0.0835469141893959, 0.08127372722830749, 0.09528124881221774, 0.08883183248351681, 0.08058775665436939, 0.08011157255765768, 0.07801273385922013, 0.08657354557813067, 0.08408077744739856, 0.08012153166419457, 0.08290731943164528, 0.08306695046540635, 0.08323318045265791, 0.08386386754905219, 0.0751219632672938, 0.0800657167599651, 0.08117065230475443, 0.07176434693127194, 0.08428266014161938, 0.07103247611291671, 0.06536768606806566, 0.07871410538589833, 0.07728026465535694, 0.07941657261970413, 0.07311302717949668, 0.07041566727638152, 0.07078333093193626, 0.06775898910853638, 0.07205674065835305, 0.07954002817583254, 0.07658370828612031, 0.08225914845364213, 0.07390959001667076, 0.07231253026538209, 0.08178059721581174, 0.07954411637918586, 0.06976576241535096, 0.07611226605794703, 0.07076334392693877, 0.07148709788740179, 0.07580247743150924, 0.06580185045318253, 0.07512803432751684, 0.06979409200568627, 0.07752071460225402, 0.07850346802446066, 0.07370923195799764, 0.07326402981982985, 0.0878288460370162, 0.08640541093339023, 0.08644039217695813, 0.08617552322480834, 0.08776083172964372, 0.07747902768205814, 0.07090156700789889, 0.07426858067770505, 0.0720055777529039, 0.0664341876331274, 0.07064918966515296, 0.06835030962328471, 0.06473555906858194, 0.0640132002797264, 0.06836254167117932, 0.0759674843479171, 0.06316770790761672, 0.06896924751195987, 0.0690721466411713, 0.07357889448377826, 0.0659383195180847, 0.06938820013722197, 0.07004594628946643, 0.0694275763555229, 0.06393974465833588, 0.0687596775393698, 0.07149225031878255, 0.06640264306214179, 0.06687276339990617, 0.0658170131424579, 0.0643172395134703, 0.07264024639260923, 0.06068763228651881, 0.06810627955002692, 0.06682316353628581, 0.062463496477573086, 0.070709318323862, 0.06902418497275657, 0.0736205342825168, 0.07348626225948986, 0.0802436958318349, 0.07444201163049308, 0.0713282871017514, 0.07474469265833539, 0.07111354111253539, 0.06659366124781121, 0.07317594180438926, 0.07056014625859196, 0.06529149661898337, 0.05961529041425598, 0.05987332330729147, 0.06375440382928732, 0.06272848000407351, 0.06941583781851696, 0.06276487694230595, 0.06767450889779766, 0.06143638170519562, 0.06693645924022747, 0.0681342647570026, 0.06423935012849999, 0.06286302839951761, 0.06562448856207757, 0.06297608386524031, 0.06325125497731453, 0.06792429153074132, 0.06129793969809914, 0.06545647575239777, 0.06450973231662921, 0.06387183172253716, 0.06253993234681136, 0.06559929169911553, 0.06221951837543916, 0.06445345747481897, 0.06368761595295964, 0.06004369029995276, 0.0668279530795738, 0.06466326687798013, 0.06601877201462099, 0.06542322378813623, 0.06704497200300549, 0.06308634614229529, 0.06478617140399506, 0.05505839024818404, 0.06096686933203718, 0.06936566849791974, 0.0652435099061644, 0.06780560017996459, 0.07195812437822138, 0.07068248727493583, 0.06825030313200164, 0.06935142042415654, 0.06407330048870066, 0.05720660727861721, 0.07201837154284205, 0.07507411400176224, 0.07756041447714483, 0.07440479655158179, 0.058615519463704836, 0.05794234804724393, 0.05992879410450987, 0.06704823323376076, 0.061933655874055915, 0.058651198499440275, 0.06756856246942834, 0.06850252364954487, 0.058378297173517266, 0.05975831709962634, 0.062239396163314316, 0.06642287071596405, 0.07018315509238156, 0.06533178430656793, 0.06224270241590609, 0.06106064194345219, 0.062051041655184026, 0.06631952706569581, 0.06421396044826495, 0.05623861262202592, 0.06310906658937503, 0.06731591418477699, 0.059384406213627124, 0.06184408605094853, 0.05663474961050682, 0.06587133647889129, 0.05734936142176346, 0.0728301608865154, 0.07165250656138848, 0.061114802749579526, 0.058641283711445606, 0.061650037148921234, 0.07050638932800657, 0.06882154838590263, 0.07143992700610084, 0.07060353612251496, 0.07416670137004798, 0.07917254871029857, 0.06459717727165132, 0.0655760103153114], 'token_peaks': [209358, 184871, 413389, 303591, 126454, 169505]}
DEBUG:sopare.worker:meta = [{'adapting': 169505, 'token_peaks': [209358, 184871, 413389, 303591, 126454, 169505], 'pos': 18, 'volume': 353, 'token': 'token', 'silence': 13}]
DEBUG:sopare.worker:characteristic = 3 {'volume': 370, 'peaks': [2], 'df': 33, 'dfm': 28432, 'fc': 470.9, 'zcr': 0, 'norm': [0.09537304765749643, 0.09343096781252481, 0.10231573444333865, 0.0965775698444472, 0.09305545890843955, 0.09380561420024246, 0.09412735847366814, 0.08099357079493844, 0.08546767661125397, 0.08467141915932813, 0.08722451928873995, 0.0813350024444613, 0.08776440778304348, 0.08733054189493604, 0.08635289517874024, 0.08350042404881662, 0.0811217396999868, 0.08755336998313884, 0.09121613576235169, 0.09339204133673724, 0.08456991232032807, 0.08279668687729543, 0.08538129383299868, 0.08247167417386929, 0.07200431568223321, 0.08633321048356, 0.07890885657326863, 0.07679344869708996, 0.07042313566052374, 0.08400674088025356, 0.07602154588558524, 0.07738546616812421, 0.08162310446274124, 0.07818396748008855, 0.07133107694830279, 0.0749476523496861, 0.07147231263149566, 0.0746429542424268, 0.07731341848979395, 0.07915315048685087, 0.07024729063709688, 0.08253961762143672, 0.08036065500849425, 0.07539235552454464, 0.08373463957575483, 0.07926404484128019, 0.07867397549426731, 0.07444325201694306, 0.07681553938389422, 0.07680629075851729, 0.0749243597583603, 0.07319942740947644, 0.07837307928804246, 0.07063318352303898, 0.07388784402394061, 0.0650082875816663, 0.08458920442707109, 0.0758909841951696, 0.07817273008726454, 0.07508914963019145, 0.07361275816903802, 0.07373259784409501, 0.07063967479441273, 0.07096810981013098, 0.07192908140039289, 0.06876016058134424, 0.07083616177752787, 0.063446260667682, 0.06749500914830678, 0.07227458452386917, 0.06566327364436692, 0.07854542759337434, 0.060697833553743634, 0.07184958625776283, 0.07023394413275984, 0.06837087112712657, 0.07112802727344915, 0.06624797664049123, 0.07249833456802407, 0.06919202813729991, 0.06611899297755104, 0.06636524537438936, 0.06826960014761614, 0.06421958782010426, 0.0717459173217598, 0.0619336632256167, 0.0655592429565929, 0.06801688465201387, 0.07239416089570014, 0.06790307940314352, 0.06994411264352036, 0.07398887255080444, 0.07516411081484213, 0.07133863055728858, 0.05996202002679841, 0.05962538051853258, 0.0703050362370386, 0.06360174105662915, 0.0656517794602473, 0.07073745349593064, 0.0652886623199475, 0.07394045465174558, 0.0626897513266976, 0.06833972655838051, 0.06833034040304092, 0.06228410182456087, 0.06795015167131147, 0.06666061683004385, 0.06715431433771986, 0.06691167417692055, 0.07081112421965279, 0.07046245584562232, 0.05719961525905441, 0.0712535364801224, 0.06833788007616906, 0.06770983516574272, 0.0692449171452026, 0.06674312107735066, 0.059672761796920125, 0.06755301470174228, 0.07510804532943129, 0.06840512750462549, 0.0647400391137649, 0.06508397930891498, 0.05897255912928193, 0.06812647831036213, 0.06039131376379578, 0.06794175788656931, 0.06367077981224417, 0.05893277933482629, 0.06569228102327805, 0.06649825727983592, 0.0632885033501494, 0.06799603585540467, 0.054111197075553744, 0.06259682825936355, 0.06834445208266968, 0.05797189964732914, 0.0698682510818501, 0.06162857926378516, 0.06854132074724775, 0.06961184559043078, 0.06940839802655507, 0.06604383724415608, 0.06978846677390572, 0.0623419231312299, 0.06718780325656065, 0.06643718570515506, 0.06036363348468207, 0.06728159107211767, 0.07099453328702332, 0.06907421133915741, 0.06238855757117361, 0.0587353515072513, 0.06937531358680435, 0.06048897459121632, 0.05978602121664933, 0.06751467657472413, 0.06352110285663827, 0.06259666887046343, 0.06884679199427489, 0.05810524464648915, 0.0625710358023068, 0.06738124094201228, 0.06298942315798714, 0.06573702183238624, 0.06441603307835346, 0.07196445034402049, 0.07209334171915796, 0.06132178076465509, 0.0644014160607673, 0.06335549222401762, 0.0665109956064942, 0.0644538253826898, 0.06802908934896719, 0.0643868756333683, 0.06457892099247138, 0.056813969042525295, 0.0694699495913692, 0.061256301923457, 0.06292543470580685, 0.06517950089757128, 0.06681537194310941, 0.06885822724981373, 0.056416072713032527, 0.05343369061431131, 0.06295791422369354, 0.05760066136583953, 0.06781942809847592, 0.06571221828209908, 0.06411760205114479, 0.06758227565748744, 0.060314952742786886, 0.06591664222086031, 0.06304696756738234, 0.07037199546142146], 'token_peaks': [585347, 332507, 48436, 112813, 83194, 142582]}
DEBUG:sopare.worker:meta = [{'adapting': 142582, 'token_peaks': [585347, 332507, 48436, 112813, 83194, 142582], 'pos': 24, 'volume': 370, 'token': 'token', 'silence': 19}]
DEBUG:sopare.worker:characteristic = 4 {'volume': 462, 'peaks': [], 'df': 24, 'dfm': 4204, 'fc': 68.6, 'zcr': 235, 'norm': [0.17672960749504765, 0.17677304498119997, 0.17497499444483441, 0.17227218230553637, 0.18049196113188756, 0.16014908223933733, 0.1668752252551692, 0.15739759596953234, 0.16281243120414204, 0.15320870600197153, 0.16418888545335192, 0.15198802455153057, 0.15257631975663807, 0.13773223342901383, 0.1547954891393811, 0.1317673650982613, 0.13254551490943992, 0.1380699097188524, 0.15206016713317233, 0.14279818898021462, 0.1401627573628429, 0.14504299176213928, 0.15121149958001762, 0.14621345268794736, 0.142915731694403, 0.13501633990424833, 0.12102093236939487, 0.13997893898827982, 0.1273279130589025, 0.11460564230404513, 0.14011995498918667, 0.1269271179164451, 0.1434588108412804, 0.1403870099567726, 0.14143235904722495, 0.13552527997826833, 0.14280736468126226, 0.13134150933428337, 0.13898811307238543, 0.13473262962244104, 0.12817040512515832, 0.11770976758744474, 0.13707743218998106, 0.12949489668728353, 0.13714427249545513, 0.15333052157719643, 0.1229449894293825, 0.05154102642036985], 'token_peaks': [184423]}
DEBUG:sopare.worker:meta = [{'adapting': 184423, 'token_peaks': [184423], 'pos': 25, 'volume': 462, 'token': 'start analysis', 'zcr': 235, 'silence': 20, 'peaks': [370564, 96006, 302398, 3133246, 3067203, 2011213, 1558614, 778267, 431315, 319016, 193540, 145057, 209358, 184871, 413389, 303591, 126454, 169505, 585347, 332507, 48436, 112813, 83194, 142582, 184423]}]
INFO:sopare.processing:stop append mode because of silence
INFO:sopare.buffering:stop buffering
DEBUG:sopare.worker:characteristic = 0 {'volume': 0, 'peaks': [], 'df': 0, 'dfm': 0, 'fc': 0.0, 'zcr': 0, 'norm': [0], 'token_peaks': []}
DEBUG:sopare.worker:meta = [{'token': 'stop'}]
INFO:sopare.buffering:terminating queue runner
INFO:sopare.recorder:Buffering not alive, stop recording
INFO:sopare.recorder:stop endless recording
here is output of ./sopare.py -l (after creating the dic!)
sopare 1.5.2
DEBUG:sopare.audio_factory:#### Default input device info #####
DEBUG:sopare.audio_factory:defaultSampleRate: 44100.0
DEBUG:sopare.audio_factory:defaultLowOutputLatency: 0.0087074829932
DEBUG:sopare.audio_factory:defaultLowInputLatency: 0.00580498866213
DEBUG:sopare.audio_factory:maxInputChannels: 2
DEBUG:sopare.audio_factory:structVersion: 2
INFO:sopare.worker:worker queue runner started
DEBUG:sopare.audio_factory:hostApi: 0
DEBUG:sopare.audio_factory:index: 2
DEBUG:sopare.audio_factory:defaultHighOutputLatency: 0.0348299319728
DEBUG:sopare.audio_factory:maxOutputChannels: 2
DEBUG:sopare.audio_factory:name: seeed-2mic-voicecard: - (hw:1,0)
DEBUG:sopare.audio_factory:defaultHighInputLatency: 0.0348299319728
INFO:sopare.buffering:buffering queue runner
DEBUG:sopare.recorder:SAMPLE_RATE: 16000
DEBUG:sopare.recorder:CHUNK: 512
INFO:sopare.recorder:start endless recording
INFO:sopare.processing:starting append mode
DEBUG:sopare.filter:New window!
DEBUG:sopare.worker:characteristic = 0 {'volume': 15244, 'peaks': [0, 5, 10, 14, 15, 65], 'df': 94, 'dfm': 3450866, 'fc': 606.8, 'zcr': 0, 'norm': [0.10935133984390594, 0.09668085496247761, 0.08568011987889064, 0.07981646849926544, 0.07579406698428724, 0.10141618831859614, 0.09112914012921405, 0.08574975463039335, 0.08355476306683064, 0.09170469326066764, 0.1024780876031649, 0.08853449417745059, 0.08909318594521487, 0.09425561899235321, 0.10996939732324511, 0.10584376309694611, 0.09209846996422301, 0.08113150133391538, 0.09695112424869685, 0.09530088457052928, 0.08448007831820287, 0.07304737030692092, 0.07148212652262659, 0.08630900894271505, 0.09186933768208519, 0.08062855740785001, 0.07309460656378408, 0.06881377925096513, 0.08232832261613177, 0.07371180649332493, 0.0658948679173174, 0.06089447312973458, 0.06737106731595582, 0.07429351700211172, 0.06406816912447658, 0.06389632792656252, 0.06515967021298304, 0.07524940010212779, 0.07339427082918283, 0.0706658022702824, 0.06295215011425874, 0.0669735516134708, 0.0792571233855015, 0.07169310492131836, 0.06800919796330102, 0.06463644536588845, 0.07525586851475194, 0.07795921172471956, 0.07797170031863038, 0.07187257945068373, 0.07458248003369185, 0.08738685360881107, 0.0775099921396784, 0.07768061037512941, 0.07588614443694289, 0.07867628711549098, 0.0833174791891067, 0.07441153539548515, 0.0754122778614868, 0.0793913230393574, 0.09133886205248834, 0.09256928373149591, 0.09065872006048002, 0.08778888946284344, 0.09329678951458543, 0.10415857824126121, 0.09526120962243795, 0.09085291243232842, 0.08629824673571677, 0.08952480256528116, 0.08454422151724605, 0.07296522963994471, 0.07378775277985157, 0.07416038928890803, 0.08366377737463214, 0.0760469056321619, 0.0731344455630373, 0.06393814750379602, 0.07273478375299412, 0.07371059888133571, 0.059535977415674526, 0.05916243328459496, 0.06107933266692879, 0.06469666218605913, 0.0688150453814011, 0.05905253122327085, 0.05029775041368453, 0.052112837057670496, 0.0450717709595119, 0.05387515519917973, 0.05008519473491902, 0.062091625064053094, 0.06726175528166688, 0.07367858987141565, 0.07205888749244181, 0.0640543785587704, 0.06916305755700254, 0.07865179031698487, 0.07476968899677269, 0.08075906792574464, 0.06967338900696268, 0.0796601448643674, 0.08643364420911445, 0.08509853566935595, 0.07501182623394967, 0.07296493459030325, 0.08021708921344327, 0.07212012377117118, 0.07489834416589601, 0.06564933599392368, 0.06929721722088146, 0.07233945518262634, 0.0627071244564514, 0.06691719735376953, 0.06393447872421285, 0.06958195410831546, 0.07180098435154171, 0.06208468955369211, 0.06756139629623625, 0.0685971494408684, 0.07285504220440277, 0.06490563845424517, 0.06729469635720292, 0.06385118066951623, 0.07305733211613397, 0.07544207283356448, 0.0612606240827792, 0.06784278161814858, 0.06059310315782893, 0.06950470543623172, 0.072004989525873, 0.06487444588059818, 0.06611020115130803, 0.06488421460948156, 0.06681770942932894, 0.059262885436620935, 0.06100664897111068, 0.05585155062408036, 0.0591857312274422, 0.05703775770733047, 0.05601785777351152, 0.05832108080154758, 0.056193189110274384, 0.061964883214534625, 0.05585671487243162, 0.062052956441008285, 0.06691403234952896, 0.0648887439973834, 0.07128853883419116, 0.06904319016964103, 0.05499659805258823, 0.05734047849989595, 0.06040199414237221, 0.05544659397068725, 0.05933247426051445, 0.06118421662658103, 0.06217903433052576, 0.06036954511798793, 0.05978885937791951, 0.060577011399243444, 0.055652580835671074, 0.05742427154231599, 0.059544674028445536, 0.05810455283550348, 0.055243416733493166, 0.052497772184369226, 0.059628449675705256, 0.06298490750663643, 0.060073122418440046, 0.0534539995455288, 0.0517934130240308, 0.05191583950953188, 0.05091296276443595, 0.052561474388443406, 0.049081531529754925, 0.05251169885381907, 0.061469249010661295, 0.0528700314418125, 0.043185529624302256, 0.05389352199533596, 0.0652851608334452, 0.06482267765824003, 0.06790610547161154, 0.06399140457852302, 0.063809932504493, 0.05956063178352729, 0.05238086276437654, 0.048102478446353875, 0.04869939632126553, 0.05730459616451783, 0.06311737744998434, 0.061999637119864205, 0.061592305846516426, 0.05855716473278354, 0.05437198789585113, 0.05038954536198432], 'token_peaks': [80195, 226052, 396619, 3275099, 6303196, 6252473]}
DEBUG:sopare.worker:meta = [{'adapting': 6252473, 'token_peaks': [80195, 226052, 396619, 3275099, 6303196, 6252473], 'pos': 6, 'volume': 15244, 'token': 'token', 'silence': 0}]
DEBUG:sopare.worker:characteristic = 1 {'volume': 480, 'peaks': [], 'df': 93, 'dfm': 1870823, 'fc': 738.9, 'zcr': 0, 'norm': [0.08606564873555479, 0.09516771321097833, 0.08140304666348507, 0.061607556598780304, 0.07802095097084956, 0.08760718174226936, 0.0999522463168722, 0.09539758298575483, 0.08698390897805566, 0.08921112677953047, 0.08893351620785771, 0.09273790649841479, 0.09268920832901921, 0.08763345108175805, 0.09335460378702866, 0.09422702538934381, 0.09027911940910373, 0.08964057574552586, 0.08087656336387118, 0.08146660704263274, 0.08154956246072344, 0.07200231251095135, 0.08326420917216218, 0.06879878986679659, 0.0719674580034382, 0.07678346973645218, 0.06785974147587115, 0.07523423940472758, 0.07333229108973807, 0.06584853743534494, 0.05957707581508678, 0.05796055287227111, 0.0646655712573591, 0.06872355085539768, 0.061203455723180505, 0.05489421393898489, 0.060385552929913516, 0.06661957325532418, 0.07060881892113871, 0.06972576256042258, 0.05659141485001103, 0.05493421040672042, 0.05699744435669297, 0.06873955298972245, 0.06989429173574377, 0.06593283376724857, 0.06360114376537396, 0.05901334383918718, 0.07337481579453642, 0.07759159579585581, 0.07190519469616866, 0.0713080793725239, 0.06739761885210273, 0.07935137320635377, 0.0810431194397582, 0.07490047896382056, 0.06358633617968668, 0.0632875574644275, 0.07289016664764429, 0.08065623032477057, 0.08679927426031073, 0.08038839585245486, 0.08524661340930306, 0.08696985612623176, 0.09182928325705433, 0.09275977234412665, 0.08582478922120144, 0.0744363572341148, 0.07503084616037113, 0.07480122904308568, 0.07732316698862246, 0.07414704590728995, 0.07052426574838602, 0.06361213239146898, 0.06587884572635848, 0.06871888688081991, 0.06791237862560548, 0.05441549054627381, 0.053799037652749356, 0.05077571580483172, 0.05835224271125754, 0.05504753791269186, 0.053245335605901375, 0.06103824359368549, 0.06158616215597023, 0.06040286450091152, 0.058780199832024885, 0.06067782786182755, 0.06036023444917742, 0.058789421476939205, 0.05356357974960429, 0.06109915461398133, 0.06503807973080433, 0.06250850805861025, 0.06843348551572992, 0.06900897849504949, 0.07457902941737209, 0.08086721722461035, 0.07972859737317542, 0.07003348147047767, 0.07735356155589028, 0.08388126401443244, 0.08828551708074435, 0.08588428597684826, 0.07841434933601737, 0.0730580165460848, 0.07089250395748779, 0.07069286655865219, 0.05479164265087127, 0.06178208406632161, 0.06019837071641971, 0.0550794105364048, 0.06399834219757458, 0.06447978284272467, 0.06255995620687048, 0.05919363048884588, 0.059117570509674484, 0.06476285981646077, 0.07099424836624466, 0.06764415540922004, 0.0661826944958283, 0.0658208695525259, 0.06546577722016517, 0.07133553574372735, 0.07104769099709192, 0.06725989461152027, 0.061980588361053884, 0.062017853608280604, 0.06559115762586323, 0.06386771296110831, 0.06115901530303998, 0.05569969421868461, 0.05735070182047009, 0.06306116915554971, 0.06855215196178074, 0.0680326981588849, 0.068389752913015, 0.0696588897822648, 0.06694034043753314, 0.06842500688086152, 0.07272512612132236, 0.07092346629631571, 0.06559992261127835, 0.06256315545557335, 0.06556041247033965, 0.0702379212107063, 0.07443722043424447, 0.06620888079645566, 0.06903985082489723, 0.07176499159513504, 0.06585850611399283, 0.06901579509860185, 0.0711388373669471, 0.07055135415433259, 0.06915032157439563, 0.06980271468218344, 0.07052262354443606, 0.0738967928152442, 0.07009897670775349, 0.08051682908809488, 0.07939393119405647, 0.07349628962787422, 0.06741346094087315, 0.06846299295852837, 0.06998166337673092, 0.07206125052008573, 0.06543917519910812, 0.05769672138679983, 0.058778621388948314, 0.05894466268630381, 0.05399401462259184, 0.06121874946796956, 0.05743330671537926, 0.06530142888157195, 0.055564372968557464, 0.06287073557561616, 0.063124047178209, 0.06082959497104617, 0.06445243593205417, 0.07264791123725141, 0.06892663596940718, 0.07219706120312423, 0.07444065934021736, 0.07537619063636446, 0.08003606489168205, 0.07920269381103949, 0.07324594131249555, 0.07327070472978227, 0.08165728635966679, 0.08074846880160509, 0.07647865820176575, 0.07425764251958661, 0.07920558888399491, 0.08437246607346006, 0.07969907259828687, 0.08081775710504921], 'token_peaks': [2909615, 1141340, 996053, 712142, 257490, 206771]}
DEBUG:sopare.worker:meta = [{'adapting': 206771, 'token_peaks': [2909615, 1141340, 996053, 712142, 257490, 206771], 'pos': 12, 'volume': 480, 'token': 'token', 'silence': 5}]
DEBUG:sopare.worker:characteristic = 2 {'volume': 2238, 'peaks': [], 'df': 967, 'dfm': 122657, 'fc': 823.2, 'zcr': 0, 'norm': [0.08817788414472431, 0.08402899857581154, 0.08532085426700779, 0.08773738672493708, 0.08139315856565756, 0.08813969372938783, 0.08673263715371918, 0.0828846026272259, 0.0781462632335137, 0.08326632351597364, 0.08379089555235131, 0.07907226990795511, 0.08169064870425093, 0.08159329329381532, 0.09022493072031733, 0.08293219704407431, 0.08507048739451199, 0.08136831432001139, 0.07694229125007382, 0.07618790749294442, 0.06990206022790262, 0.07820543157884076, 0.07775034970148458, 0.07714288813778007, 0.07966956245820486, 0.08049687276880317, 0.07643482597078508, 0.0713442643237501, 0.0664047188375913, 0.0661527717377594, 0.06592615246115019, 0.06262741176215093, 0.06297682755603827, 0.06507830690932827, 0.06855846894684593, 0.06610515810267911, 0.06551453327678146, 0.06560994388753193, 0.07469163444570188, 0.06446754854466659, 0.06730315514790376, 0.07022334093689417, 0.06979543994880867, 0.07189525757398013, 0.05858981244915912, 0.07121349685305792, 0.06950435875151058, 0.07071962490121636, 0.06764364927394843, 0.07435698491079903, 0.0763980891592094, 0.07421633771705409, 0.07206768081205647, 0.07166443300998449, 0.06797532565202152, 0.07059762870695158, 0.06930202672883812, 0.07437273521010733, 0.07641878810378894, 0.07730330361743473, 0.081837166608219, 0.08801207664020225, 0.0781270422254894, 0.08071028009992075, 0.07773526637622884, 0.07131954559680855, 0.07754074598271606, 0.0748827921732937, 0.07256496424172693, 0.0667484569388984, 0.06984830236988515, 0.06766378071254574, 0.0685548826572655, 0.05977706866470153, 0.06434595184843267, 0.06432498871128631, 0.05465558143918272, 0.052188880661481946, 0.05876031591777181, 0.05368566188372676, 0.05552288942690618, 0.05508125751272257, 0.049000690758264576, 0.06625768096644279, 0.06072904704584837, 0.05526790230598327, 0.056810026884992634, 0.05725214126724296, 0.054992356059344764, 0.05241160678424233, 0.05839571312316184, 0.05718548712195219, 0.05672972513816698, 0.05132225844912829, 0.05854095238634046, 0.05902677713975554, 0.058877991601477414, 0.05837971695546167, 0.06298942986144153, 0.06298862868756336, 0.06247527201924589, 0.06606859477298184, 0.07341680886062976, 0.08210351030226162, 0.07473484275122251, 0.08329756313941443, 0.08582333456949888, 0.08253542803570951, 0.06959397747676171, 0.05611620641465679, 0.06399203383015543, 0.062179736019584375, 0.0645001680114584, 0.06678531441747841, 0.06823705625515071, 0.05604174158935768, 0.05940042964302338, 0.059464697050986844, 0.05944101704061888, 0.0515358803360423, 0.06258204669639089, 0.05650114552962689, 0.05906788703274826, 0.05683388570517517, 0.06105347245214306, 0.05258136818947963, 0.059814046251473955, 0.058253130693028676, 0.05914640692880658, 0.062496877038970125, 0.06876854181425388, 0.0697267694434968, 0.0723656901769247, 0.0635410592552113, 0.06712668979452419, 0.058679078630146035, 0.05664617954250522, 0.07216246869539099, 0.06926634476090877, 0.07180222233543186, 0.06750122465493799, 0.06558283018084897, 0.06947531660381669, 0.07656753119867185, 0.07513653169438239, 0.08011581466572948, 0.07469775106556621, 0.08206735291241993, 0.07848409852326564, 0.08244638672093209, 0.08911368584678352, 0.08919282773635612, 0.08406591176554755, 0.09010769979213577, 0.09433827198282665, 0.08776861254914879, 0.08341572022481983, 0.07758616982990142, 0.07510385222092958, 0.07163451138434186, 0.07561617489848917, 0.07664408417278774, 0.0713650081590832, 0.06593618070468125, 0.07525694708609523, 0.06952167524126474, 0.05366770747903284, 0.06515982921143902, 0.06165046494937221, 0.05030739129926505, 0.0555507062153455, 0.059233234118656705, 0.05719451515925704, 0.056358864397786576, 0.06899213303626539, 0.06158714783226961, 0.06585475353444464, 0.06957700832156165, 0.06971582684116989, 0.07955862468994992, 0.08239641842394335, 0.07478495431347712, 0.07603051129989906, 0.08069617996844128, 0.07992939799859267, 0.07554993150728116, 0.06143444321517141, 0.08789654738453644, 0.08233580438667855, 0.09463831634705469, 0.0867630182108919, 0.08400168078913459, 0.08429721371380197, 0.08981620147787878, 0.08195806887089592, 0.09081983135103926], 'token_peaks': [210922, 820028, 1402191, 1472225, 1380124, 1139856]}
DEBUG:sopare.worker:meta = [{'adapting': 1139856, 'token_peaks': [210922, 820028, 1402191, 1472225, 1380124, 1139856], 'pos': 18, 'volume': 2238, 'token': 'token', 'silence': 11}]
DEBUG:sopare.worker:characteristic = 3 {'volume': 471, 'peaks': [0, 1, 2, 3, 4, 5], 'df': 30, 'dfm': 77190, 'fc': 433.4, 'zcr': 0, 'norm': [0.1067831205601941, 0.10088050440397058, 0.10540084002289828, 0.10502398747493036, 0.1044038947869239, 0.10134419128658231, 0.09535882054964347, 0.10015936359766259, 0.09319851747249148, 0.09376771784701275, 0.09276332305600576, 0.09261661799061174, 0.09057698085024073, 0.09118844113460212, 0.09380877069361551, 0.08480424550944125, 0.08417381191708638, 0.08045275316910326, 0.08503016530555338, 0.08314402964727531, 0.09026079992149702, 0.08325576348724509, 0.08115652309585362, 0.08005464657682396, 0.08173551312722344, 0.08267893473165541, 0.0839984579423088, 0.08044744374469623, 0.08228524896806116, 0.08585222314956265, 0.08396891180657681, 0.08209720534427435, 0.07840663946625276, 0.07684903291793492, 0.07753918499244428, 0.07363838888317872, 0.07723552244152926, 0.08229235501682669, 0.07478930177083085, 0.07808685722448427, 0.07805252083308452, 0.08105236482524063, 0.07716828234325113, 0.07601562841644077, 0.08302892399872613, 0.0798317515161189, 0.07523138630775689, 0.07267655203485408, 0.08028503821400258, 0.08258290820704457, 0.0889792079502277, 0.08489597173791052, 0.07979788766556464, 0.08561087655854646, 0.08758070908871614, 0.07884120478013498, 0.07331928263248794, 0.06521856155687486, 0.07168388013361243, 0.06216706175827947, 0.07003164968798967, 0.06955644306824298, 0.07379885458333675, 0.07965591515578553, 0.07182861082428318, 0.07993260612851848, 0.07077650961485704, 0.07937658380084732, 0.06021277885482645, 0.07225102036581184, 0.06746126813116363, 0.06741756692787508, 0.06809107038728043, 0.06887690919684594, 0.07480791331838148, 0.07065943287215808, 0.06713343994202702, 0.06891038669186056, 0.06717135244026917, 0.07475637496403549, 0.07061539328641586, 0.06091391018907567, 0.06956636420394445, 0.06710566408035705, 0.06471564663698419, 0.06802573504962993, 0.0703349596118979, 0.06554899413341408, 0.06714006086684192, 0.06533015176522335, 0.0655252148899534, 0.06220868186011011, 0.06497041304648679, 0.07114896342002308, 0.06321197221446485, 0.06884596164694753, 0.06535875548356791, 0.06932753198324042, 0.06265367560387144, 0.06752087962886172, 0.06598499680232812, 0.06677167717017508, 0.0659960552576701, 0.062463404477664596, 0.07057905934625547, 0.06714570307698565, 0.07151123509250236, 0.06447153579213094, 0.061576916527434765, 0.06867544065307533, 0.06717847130423557, 0.07190423411808046, 0.06623310069171966, 0.07091711672032011, 0.06169121473851753, 0.06975809210688451, 0.0610805645096375, 0.06020087894529435, 0.06736390322371216, 0.053900011827194484, 0.05591902440514243, 0.06603994393921, 0.0547236259111721, 0.05448993852963028, 0.05492385892341674, 0.06471837231277872, 0.06633860177533099, 0.0604669432491733, 0.06826525033673561, 0.06791709384123491, 0.05857497143079543, 0.06291096213472103, 0.06615666869427901, 0.06516475285476667, 0.06852529930792899, 0.06421784264242289, 0.06972806707892856, 0.06286401048959324, 0.06633479719374955, 0.06372217747527753, 0.05756477342852283, 0.06221811171233366, 0.06112786497519139, 0.06511812612211006, 0.06365884565409123, 0.062517724011826, 0.065516091921037, 0.06328968117706549, 0.06662303250864827, 0.05191521017806672, 0.06384793230208123, 0.05799506405596912, 0.05710352059805869, 0.058775062625242014, 0.0640933869775181, 0.05702511092668675, 0.06896452459852993, 0.06244828271110192, 0.05959106837813604, 0.05951735082473213, 0.055604118265992306, 0.06296768486391341, 0.05781960593453892, 0.06230475523656843, 0.05840112407256627, 0.06297266864006965, 0.05305391180306385, 0.06695984471345451, 0.06710451325282274, 0.05821296009795655, 0.0612547764545806, 0.05952700335886366, 0.06240842697575004, 0.0627137834714132, 0.06373763708811296, 0.05888727040681978, 0.062457710728517024, 0.06491989760676964, 0.057798015674647624, 0.06280075278151594, 0.06115741990113571, 0.056276233749603694, 0.057261448997607045, 0.06078406110568727, 0.06652329962820447, 0.05903094865597096, 0.06599321201037227, 0.06617702191366681, 0.05606212065784765, 0.0574842322736619, 0.06358009761495355, 0.05809222664277306, 0.06143587532613856, 0.05912714261100379, 0.06288100188886832, 0.05762110339981603], 'token_peaks': [822546, 873150, 674871, 157396, 47746, 228780]}
DEBUG:sopare.worker:meta = [{'adapting': 228780, 'token_peaks': [822546, 873150, 674871, 157396, 47746, 228780], 'pos': 24, 'volume': 471, 'token': 'token', 'silence': 17}]
DEBUG:sopare.worker:characteristic = 4 {'volume': 730, 'peaks': [], 'df': 35, 'dfm': 20714, 'fc': 409.9, 'zcr': 243, 'norm': [0.11217676915214499, 0.10909895912002901, 0.10474817623147757, 0.11199729865375056, 0.0994253442146802, 0.08995075926470963, 0.09936056093887262, 0.09829415713805757, 0.09451231319853272, 0.09480961785757916, 0.10151037601260976, 0.09027452540424218, 0.09303817964504224, 0.07843661477284436, 0.0830904421523633, 0.09451927476188358, 0.0922598043295255, 0.09766738873291342, 0.09145021582689596, 0.09173459454656462, 0.09657463894040712, 0.10387825187925388, 0.10390034662759505, 0.10853436715381637, 0.09126821902223448, 0.10143708459486653, 0.09165597452922541, 0.09695986036665755, 0.09374764434914089, 0.10030400639217919, 0.09862741158279774, 0.09550860029569926, 0.09583982475982787, 0.09042828597775888, 0.09683403393519098, 0.09603104600816226, 0.09533262922494853, 0.09368369341000088, 0.09314671354340512, 0.08643568176487242, 0.08913533019657076, 0.0729791559638988, 0.08254004466824857, 0.0747404032228374, 0.07394501707873664, 0.09245327512351782, 0.09329087147170445, 0.0827008808413815, 0.08702740139545423, 0.08128510054086123, 0.0815349169122655, 0.08937833777327506, 0.08344827013917082, 0.09212087122426468, 0.08320921259467856, 0.07575411826009858, 0.08515679716232018, 0.07643703809640319, 0.08775238182202731, 0.07375719644309288, 0.0794683697579934, 0.06993249511538614, 0.06415692362322964, 0.07718872743287498, 0.08353729685774687, 0.08173173221573489, 0.07649725126223787, 0.0786563076424465, 0.08581358976562266, 0.08244483262538463, 0.07677271142235148, 0.08161722289466536, 0.08109579688430016, 0.08278794978433705, 0.08495127794415633, 0.0796920897460722, 0.08088923977727196, 0.08133717537717754, 0.08775097722956855, 0.08587692133563615, 0.08918273764292164, 0.08345604572281248, 0.08610393567943744, 0.07526005621440064, 0.06948812944628198, 0.07555211516600865, 0.07296487856896586, 0.07338277914667574, 0.0762319180974018, 0.0721587298676463, 0.05923860366553863, 0.07414438776288747, 0.07455492217529741, 0.08063842578560292, 0.0785188826612363, 0.07426506298590518, 0.06776773629486915, 0.07689388636965606, 0.08309838717864929, 0.07293964447367741, 0.0781167261209698, 0.07923340038106554, 0.07883733207739102, 0.07177243613232483, 0.06614795188771729, 0.06887711190454511, 0.06003566281971215, 0.06917813878305322, 0.07149555756840272, 0.07068691289062018, 0.06807347045246183, 0.0667903729932355, 0.06859479437573603, 0.06484974411299241, 0.06953258536258462, 0.07326658379516363, 0.07788823099348209, 0.07604014353985118, 0.07548006225026985, 0.05805722348991186, 0.05436208383918194, 0.0734076877249822, 0.06793524894421617, 0.06546197972414043, 0.07442692493527718, 0.07889300805453921, 0.08089890318912264, 0.07558033618833908, 0.06485224593156338, 0.07345776183357478, 0.07334948840442548, 0.07830834687740845, 0.07803858898171963, 0.062312093730460934, 0.06351638912249442, 0.06723702653247951, 0.07302156641025596, 0.0695930314389512, 0.06745282529542315, 0.06963836919348115, 0.06735479815069124, 0.06503826270263378, 0.07150420553019687, 0.061585116014960355, 0.056122847805505346, 0.07129052094131774, 0.06603481691348141, 0.06095298165788056, 0.06492506709822506, 0.06021794837875462], 'token_peaks': [451071, 551299, 347193]}
DEBUG:sopare.worker:meta = [{'adapting': 347193, 'token_peaks': [451071, 551299, 347193], 'pos': 27, 'volume': 730, 'token': 'start analysis', 'zcr': 243, 'silence': 20, 'peaks': [80195, 226052, 396619, 3275099, 6303196, 6252473, 2909615, 1141340, 996053, 712142, 257490, 206771, 210922, 820028, 1402191, 1472225, 1380124, 1139856, 822546, 873150, 674871, 157396, 47746, 228780, 451071, 551299, 347193]}]
DEBUG:sopare.analyze:removing test from potential start position 1 bc MARGINAL_VALUE > 0.678895236778
DEBUG:sopare.analyze:removing test from potential start position 2 bc MARGINAL_VALUE > 0
DEBUG:sopare.analyze:removing test from potential start position 3 bc MARGINAL_VALUE > 0
DEBUG:sopare.analyze:removing test from potential start position 4 bc MARGINAL_VALUE > 0
Process worker for filtered data:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/home/sopare/sopare/worker.py", line 123, in run
self.analyze.do_analysis(self.compare.get_results(), self.character, self.rawbuf)
File "/home/sopare/sopare/analyze.py", line 55, in do_analysis
matches = self.deep_search(framing, data)
File "/home/sopare/sopare/analyze.py", line 91, in deep_search
word_sim = self.deep_inspection(id, startpos, data)
File "/home/sopare/sopare/analyze.py", line 137, in deep_inspection
sim, sl, sr = self.token_sim(characteristic, dcharacteristic)
File "/home/sopare/sopare/analyze.py", line 120, in token_sim
sim_zcr = self.util.single_similarity(characteristic['zcr'], dcharacteristic['zcr']) * self.cfg.getfloatoption('compare', 'SIMILARITY_ZERO_CROSSING_RATE')
File "/home/sopare/sopare/config.py", line 33, in getfloatoption
return self.config.getfloat(section, option)
File "/usr/lib/python2.7/ConfigParser.py", line 362, in getfloat
return self._get(section, float, option)
File "/usr/lib/python2.7/ConfigParser.py", line 356, in _get
return conv(self.get(section, option))
File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
raise NoOptionError(option, section)
NoOptionError: No option 'similarity_zero_crossing_rate' in section: 'compare'
INFO:sopare.processing:stop append mode because of silence
INFO:sopare.buffering:stop buffering
INFO:sopare.processing:starting append mode
DEBUG:sopare.filter:New window!
INFO:sopare.processing:stop append mode because of silence
INFO:sopare.buffering:stop buffering
Traceback (most recent call last):
File "./sopare.py", line 187, in
main(sys.argv[1:])
File "./sopare.py", line 108, in main
recorder.recorder(cfg)
File "/home/sopare/sopare/recorder.py", line 44, in init
self.recording()
File "/home/sopare/sopare/recorder.py", line 88, in recording
buf = self.stream.read(self.cfg.getintoption('stream', 'CHUNK'))
File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 608, in read
return pa.read_stream(self._stream, num_frames, exception_on_overflow)
KeyboardInterrupt
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.7/multiprocessing/util.py", line 325, in _exit_function
p.join()
File "/usr/lib/python2.7/multiprocessing/process.py", line 145, in join
res = self._popen.wait(timeout)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 154, in wait
return self.poll(0)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 135, in poll
pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.7/multiprocessing/util.py", line 325, in _exit_function
p.join()
File "/usr/lib/python2.7/multiprocessing/process.py", line 145, in join
res = self._popen.wait(timeout)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 154, in wait
return self.poll(0)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 135, in poll
pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt
Ok, thx. The issue is fixed so I close the issue for now.
You need to make sure to add the option
SIMILARITY_ZERO_CROSSING_RATE
to the "Calculation basis" options and to your config file
in order to avoid the above "error" message. The option was introduced with one of the last commits.