I´m working with Audio Mechanica´s source code and I´ve realized that in every function there are many:
for(nux=0; nux<55; nux++){ // delay
sceDisplayWaitVblankStart();
}
What are they for? This only "freezes" the screen, no?
Thanks ;)
Help with Audio Mechanica
-
- Posts: 31
- Joined: Wed May 16, 2007 11:08 am
And another question
Other question: I need to separate the part of the source code which affects the Yackback option. I´ve seen, inside audioInputLoopCallback();
but don´t know what exactly it does. What are k, vox, voxon and scan for? And which sample frequency is yackback using?
Thanks ;)
PD: I´m trying to implement a voice recognition using Audio Mechanica, has anybody already worked on it?
Code: Select all
if (monitor == 4){
if (vox != 0){
vox--; // decrement voice activation delay to zero
}
pspDebugScreenSetXY(1, sensb);
printf(" ");
pspDebugScreenSetTextColor(0x00EFDDCA);
pspDebugScreenSetBackColor(0x00000000);
pspDebugScreenSetXY(1, sens);
printf("VOX >");
if (k != 33){ // basic high sensitivity
if (scan < sens){ // experimental industrial sensitivity
vox = 45; // set small yakback delay
if (voxon == 0){
if (recordindex > 20479){
replaystart = recordindex - 20480;
}
else{
indexbuf = 20480 - recordindex;
replaystart = 11534336 - indexbuf;
}
}
voxon = 1;
scan = 33;
}
}
else{ //si k == 33
if (voxon == 1){
if (vox < 1){
mode = 1;
voxon = 0;
yak = recordindex;
recordindex = replaystart;
pspDebugScreenSetTextColor(0x00EFDDCA);
pspDebugScreenSetBackColor(0x00000000);
pspDebugScreenSetXY(1, sens);
printf(" ");
}
}
}
} // monitor = 4
Thanks ;)
PD: I´m trying to implement a voice recognition using Audio Mechanica, has anybody already worked on it?
I haven't tried voice recognition yet.
Still getting around to it.
That is why that Yakback feature was really done though.
voxon is 0 or 1 depending if voice activation is set in tape recorder mode.
vox is the level of sensitivity represented by the "VOX >" cursor graphic
on the screen when VOX mode is on.
scan is a variable that is used to seek across a horizontal line to detect the wave.
Art.
Still getting around to it.
That is why that Yakback feature was really done though.
voxon is 0 or 1 depending if voice activation is set in tape recorder mode.
vox is the level of sensitivity represented by the "VOX >" cursor graphic
on the screen when VOX mode is on.
scan is a variable that is used to seek across a horizontal line to detect the wave.
Art.
-
- Posts: 31
- Joined: Wed May 16, 2007 11:08 am
Thanks for your help Art :D I´m still trying to understand the code... I think the level of sensitivity is determined by "sens"
[/quote]voxon is 0 or 1 depending if voice activation is set in tape recorder mode. [quote]
One question: why there is an if(voxon) inside an if(monitor ==4)? How is monitor == 4 (yakback mode) affected by changes in voxon?
Other thing... what does (k != 33) mean?
Thanks for your help :)
[/quote]voxon is 0 or 1 depending if voice activation is set in tape recorder mode. [quote]
One question: why there is an if(voxon) inside an if(monitor ==4)? How is monitor == 4 (yakback mode) affected by changes in voxon?
Other thing... what does (k != 33) mean?
Thanks for your help :)
-
- Posts: 31
- Joined: Wed May 16, 2007 11:08 am
I´ve improved a few things on voice recognition using Audio Mechanica´s source code... but there´s one thing can´t understand. "k"... what is it for? I think k contains one sample, next we take the 2º byte... and then nothing :(
Why it makes k = 0, when k is < 0 or > 33? Why
Does anybody have any hint?
Thanks ;)
Why it makes k = 0, when k is < 0 or > 33? Why
Code: Select all
if (k != 33){ // basic high sensitivity
if (scan < sens){ // experimental industrial sensitivity
Thanks ;)
because in debug screen mode, that is how many lines are on the display.
No less than zero, no more than 33.
From the wave drawing routine:
Which actually checks if the wave graphic on the screen went higher
(closer to the top line) than the value in scan.
If ever I started voice recogntion with it, I was planning to use the wave
display as shown on the screen to lower the resolution to something workable.
Art.
No less than zero, no more than 33.
From the wave drawing routine:
Code: Select all
if (k < scan) {
scan = k;
}
(closer to the top line) than the value in scan.
If ever I started voice recogntion with it, I was planning to use the wave
display as shown on the screen to lower the resolution to something workable.
Art.