Difference between revisions of "Sound Recording Lab"

From TSG Doc
Jump to navigation Jump to search
Line 1: Line 1:
 
[[File:Sound Lab Setup2.JPG|framed|left|Sound Lab Setup 2]]
 
[[File:Sound Lab Setup2.JPG|framed|left|Sound Lab Setup 2]]
 +
 +
== Soundkey ==
 +
 +
Example using soundKey from the buttonbox in Presentation:
 +
 +
<nowiki>
 +
output_port oport = output_port_manager.get_port( 1 );
 +
 +
#callibrate the voicekey
 +
oport.send_string("CV");
 +
#Detect the voicekey once! When you want to do another trigger of voicekey send another "DV"
 +
oport.send_string("DV");
 +
 +
#recieve the "V", in this case enter the "V" in your response manager
 +
loop
 +
  count_old = response_manager.total_response_count()
 +
until
 +
  response_manager.total_response_count() > count_old
 +
begin
 +
end;
 +
voiceKeyTime = clock.time();</nowiki>

Revision as of 17:01, 10 March 2015

Sound Lab Setup 2

Soundkey

Example using soundKey from the buttonbox in Presentation:

output_port oport = output_port_manager.get_port( 1 );

#callibrate the voicekey
oport.send_string("CV");
#Detect the voicekey once! When you want to do another trigger of voicekey send another "DV"
oport.send_string("DV");

#recieve the "V", in this case enter the "V" in your response manager 
loop
  count_old = response_manager.total_response_count()
until
  response_manager.total_response_count() > count_old
begin
end;
voiceKeyTime = clock.time();