﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » Input device: Voice record (issue with the latency)</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 01 May 2026 19:35:29 GMT</lastBuildDate><ttl>20</ttl><item><title>Input device: Voice record (issue with the latency)</title><link>https://forums.millisecond.com/Topic36171.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I am currently trying to program an experiment that records the verbal response provided by the participants. I used the /inputdevice = voice record one and it does record the response and also stores recordings. However, i am not sure about the latency it provides (in my case all of the trials have same latency). I want the response time (saved as latency if possible) to be time between&amp;nbsp; the stimulus onset (presentation of faces) and the first utterance by the participants.&amp;nbsp; I am a beginner in Inquisit and i am not sure what can be done for this. Could you please help me with this?&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/minimumversion = "4.0.2.0"&lt;br/&gt;/ fontstyle = ("Arial", 6.00%, true, false, false, false, 5, 1)&lt;br/&gt;&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/completed = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveHappy&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;/2 = "005_o_f_h_a.jpg"&lt;br/&gt;/3 = "006_m_f_h_b.jpg"&lt;br/&gt;/4 = "007_m_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeAngry&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;/2 = "005_o_f_a_b.jpg"&lt;br/&gt;/3 = "006_m_f_a_a.jpg"&lt;br/&gt;/4 = "007_m_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveFace&amp;gt;&lt;br/&gt;/ items = PositiveHappy &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeFace&amp;gt;&lt;br/&gt;/ items = NegativeAngry &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixation&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ color = black&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item BlankScreen&amp;gt;&lt;br/&gt;/1= ""&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text BlankScreen&amp;gt;&lt;br/&gt;/ items = BlankScreen&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page welcome&amp;gt;&lt;br/&gt;Welcome to the Experiment 2.&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page end&amp;gt;&lt;br/&gt;This is the end. Thank you for your participation. &lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;instruct&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 5%, true)&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ windowsize = (90%, 90%)&lt;br/&gt;/ screencolor = white&lt;br/&gt;&amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;htmlpage CongruentInstruction &amp;gt;&lt;br/&gt;/ file = "In this specific task.htm"&lt;br/&gt;&amp;lt;/htmlpage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveInstructionImage&amp;gt;&lt;br/&gt;/ items = PositiveInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeInstructionImage&amp;gt;&lt;br/&gt;/ items = NegativeInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelI&amp;gt;&lt;br/&gt;/1 = "Bika.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelI&amp;gt;&lt;br/&gt;/ items = VowelI&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelO&amp;gt;&lt;br/&gt;/ items = VowelO&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelO&amp;gt;&lt;br/&gt;/1 = "Boka.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelI; 4500=NegativeInstructionImage; 5500=sound.VowelO ]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstInCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelO; 4500=NegativeInstructionImage; 5500=sound.Voweli]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0 =fixation; 500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block0&amp;gt;&lt;br/&gt;/ trials = [1-2= noreplace(PreInstCong, PreInstInCong)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;/ postinstructions = ()&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block1&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(CongruentPositive, CongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block2&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(IncongruentPositive, IncongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=Block0; 2=Block1; 3=Block2]&lt;br/&gt;/ preinstructions = (page.welcome)&lt;br/&gt;/ postinstructions = (page.end)&lt;br/&gt;&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 11 Jun 2024 14:33:32 GMT</pubDate><dc:creator>Saru</dc:creator></item><item><title>RE: Input device: Voice record (issue with the latency)</title><link>https://forums.millisecond.com/Topic36294.aspx</link><description>&lt;blockquote data-id="36293" class="if-quote-wrapper" unselectable="on" data-guid="1718116358989" contenteditable="false" id="if_insertedNode_1718116358632"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36293" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36293" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36293" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/11/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36293"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36292" class="if-quote-wrapper" unselectable="on" data-guid="1718116358989" contenteditable="false" id="if_insertedNode_1718115922869"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36292" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36292" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36292" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Saru - 6/11/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36292"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36172" class="if-quote-wrapper" unselectable="on" data-guid="1718116358989" contenteditable="false" id="if_insertedNode_1718113225646"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36172" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36172" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36172" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/30/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36172"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36171" class="if-quote-wrapper" unselectable="on" data-guid="1718116358989" contenteditable="false" id="if_insertedNode_1714495343816"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36171" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36171" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36171" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Saru - 4/30/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36171"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;&lt;br/&gt;I am currently trying to program an experiment that records the verbal response provided by the participants. I used the /inputdevice = voice record one and it does record the response and also stores recordings. However, i am not sure about the latency it provides (in my case all of the trials have same latency). I want the response time (saved as latency if possible) to be time between&amp;nbsp; the stimulus onset (presentation of faces) and the first utterance by the participants.&amp;nbsp; I am a beginner in Inquisit and i am not sure what can be done for this. Could you please help me with this?&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/minimumversion = "4.0.2.0"&lt;br/&gt;/ fontstyle = ("Arial", 6.00%, true, false, false, false, 5, 1)&lt;br/&gt;&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/completed = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveHappy&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;/2 = "005_o_f_h_a.jpg"&lt;br/&gt;/3 = "006_m_f_h_b.jpg"&lt;br/&gt;/4 = "007_m_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeAngry&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;/2 = "005_o_f_a_b.jpg"&lt;br/&gt;/3 = "006_m_f_a_a.jpg"&lt;br/&gt;/4 = "007_m_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveFace&amp;gt;&lt;br/&gt;/ items = PositiveHappy &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeFace&amp;gt;&lt;br/&gt;/ items = NegativeAngry &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixation&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ color = black&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item BlankScreen&amp;gt;&lt;br/&gt;/1= ""&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text BlankScreen&amp;gt;&lt;br/&gt;/ items = BlankScreen&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page welcome&amp;gt;&lt;br/&gt;Welcome to the Experiment 2.&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page end&amp;gt;&lt;br/&gt;This is the end. Thank you for your participation. &lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;instruct&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 5%, true)&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ windowsize = (90%, 90%)&lt;br/&gt;/ screencolor = white&lt;br/&gt;&amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;htmlpage CongruentInstruction &amp;gt;&lt;br/&gt;/ file = "In this specific task.htm"&lt;br/&gt;&amp;lt;/htmlpage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveInstructionImage&amp;gt;&lt;br/&gt;/ items = PositiveInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeInstructionImage&amp;gt;&lt;br/&gt;/ items = NegativeInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelI&amp;gt;&lt;br/&gt;/1 = "Bika.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelI&amp;gt;&lt;br/&gt;/ items = VowelI&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelO&amp;gt;&lt;br/&gt;/ items = VowelO&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelO&amp;gt;&lt;br/&gt;/1 = "Boka.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelI; 4500=NegativeInstructionImage; 5500=sound.VowelO ]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstInCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelO; 4500=NegativeInstructionImage; 5500=sound.Voweli]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0 =fixation; 500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block0&amp;gt;&lt;br/&gt;/ trials = [1-2= noreplace(PreInstCong, PreInstInCong)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;/ postinstructions = ()&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block1&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(CongruentPositive, CongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block2&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(IncongruentPositive, IncongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=Block0; 2=Block1; 3=Block2]&lt;br/&gt;/ preinstructions = (page.welcome)&lt;br/&gt;/ postinstructions = (page.end)&lt;br/&gt;&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36171"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;gt;  However, i am not sure about the latency it provides (in my case all of the trials have same latency). I want the response time (saved as latency if possible) to be time between  the stimulus onset (presentation of faces) and the first utterance by the participants.&lt;br/&gt;&lt;br/&gt;That's what the code does, and it's working fine for me. If it doesn't on your system, that's probably an issue with the soundcard or microphone. How well voicerecord works varies greatly between systems and particular hardware.&lt;br/&gt;&lt;br/&gt;You can fidlle around with different voicekeythreshold&amp;nbsp; ( &lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm"&gt;https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm&lt;/a&gt;&lt;/a&gt; ) settings to try and find the correct trip level for your hardware. Make sure your microphone is placed properly, and try a different sound interface if you have one available (external ones are often better than the cheap chipsets found in many PCs or laptops).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36172"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;So now i have another issue with the voice record. I tried to set up my computer sound system to solve this issue. So far i kept the /voicekeythreshold = 3 and the /inputdevice= voice record. I am using a headset with&amp;nbsp; attached microphone. When i set the input volume to 65 or more, the trials end abruptly and i get either very short latency like less than 120 ms (the trial ends after onset of stimulus + 1300 ms) or no latency at all and recordings like this &lt;a href="https://drive.google.com/drive/folders/1bCZ3SenDnX32ouyrC97hfhx3IW6ZiAxA?usp=drive_link"&gt;&lt;a href="https://drive.google.com/drive/folders/1bCZ3SenDnX32ouyrC97hfhx3IW6ZiAxA?usp=drive_link"&gt;https://drive.google.com/drive/folders/1bCZ3SenDnX32ouyrC97hfhx3IW6ZiAxA?usp=drive_link&lt;/a&gt;&lt;/a&gt; .&amp;nbsp; The recording here is weird as it did not record the complete response which is just a vowel and not even a word. &lt;br/&gt;When i keep the input volume to 50 and still /voicekeythreshold = 3 and speak out really loud almost shout then the voice record works fine. But i cannot tell each participant everytime to shout as i have a lot of trials, so do you have any solution for this? i have been struggling with this for atleast a week now, i can send you the code if needed.&lt;br/&gt;&lt;a href="https://drive.google.com/drive/folders/1bCZ3SenDnX32ouyrC97hfhx3IW6ZiAxA?usp=drive_link" id="if_insertedNode_1718115044068"&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36292"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;That's not something any code can solve, you need to try to balance your recording setup properly. At high input volume, it probably picks up too much noise (breathing on the microphone, clothes rustling, etc.; some sound cards will also have a lot of internal noise, badly shielded cables and wobbly connectors can make things worse, as can driver settings like volume levelng / compression, which will amplify any noise).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36293"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Ah okay!&amp;nbsp; So i will test with other devices as well thankyou so much for quick reply :)&lt;br/&gt;</description><pubDate>Tue, 11 Jun 2024 14:33:32 GMT</pubDate><dc:creator>Saru</dc:creator></item><item><title>RE: Input device: Voice record (issue with the latency)</title><link>https://forums.millisecond.com/Topic36293.aspx</link><description>&lt;blockquote data-id="36292" class="if-quote-wrapper" unselectable="on" data-guid="1718115924083" contenteditable="false" id="if_insertedNode_1718115922869"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36292" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36292" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36292" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Saru - 6/11/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36292"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36172" class="if-quote-wrapper" unselectable="on" data-guid="1718115924083" contenteditable="false" id="if_insertedNode_1718113225646"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36172" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36172" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36172" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/30/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36172"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36171" class="if-quote-wrapper" unselectable="on" data-guid="1718115924083" contenteditable="false" id="if_insertedNode_1714495343816"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36171" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36171" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36171" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Saru - 4/30/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36171"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;&lt;br/&gt;I am currently trying to program an experiment that records the verbal response provided by the participants. I used the /inputdevice = voice record one and it does record the response and also stores recordings. However, i am not sure about the latency it provides (in my case all of the trials have same latency). I want the response time (saved as latency if possible) to be time between&amp;nbsp; the stimulus onset (presentation of faces) and the first utterance by the participants.&amp;nbsp; I am a beginner in Inquisit and i am not sure what can be done for this. Could you please help me with this?&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/minimumversion = "4.0.2.0"&lt;br/&gt;/ fontstyle = ("Arial", 6.00%, true, false, false, false, 5, 1)&lt;br/&gt;&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/completed = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveHappy&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;/2 = "005_o_f_h_a.jpg"&lt;br/&gt;/3 = "006_m_f_h_b.jpg"&lt;br/&gt;/4 = "007_m_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeAngry&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;/2 = "005_o_f_a_b.jpg"&lt;br/&gt;/3 = "006_m_f_a_a.jpg"&lt;br/&gt;/4 = "007_m_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveFace&amp;gt;&lt;br/&gt;/ items = PositiveHappy &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeFace&amp;gt;&lt;br/&gt;/ items = NegativeAngry &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixation&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ color = black&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item BlankScreen&amp;gt;&lt;br/&gt;/1= ""&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text BlankScreen&amp;gt;&lt;br/&gt;/ items = BlankScreen&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page welcome&amp;gt;&lt;br/&gt;Welcome to the Experiment 2.&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page end&amp;gt;&lt;br/&gt;This is the end. Thank you for your participation. &lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;instruct&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 5%, true)&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ windowsize = (90%, 90%)&lt;br/&gt;/ screencolor = white&lt;br/&gt;&amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;htmlpage CongruentInstruction &amp;gt;&lt;br/&gt;/ file = "In this specific task.htm"&lt;br/&gt;&amp;lt;/htmlpage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveInstructionImage&amp;gt;&lt;br/&gt;/ items = PositiveInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeInstructionImage&amp;gt;&lt;br/&gt;/ items = NegativeInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelI&amp;gt;&lt;br/&gt;/1 = "Bika.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelI&amp;gt;&lt;br/&gt;/ items = VowelI&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelO&amp;gt;&lt;br/&gt;/ items = VowelO&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelO&amp;gt;&lt;br/&gt;/1 = "Boka.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelI; 4500=NegativeInstructionImage; 5500=sound.VowelO ]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstInCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelO; 4500=NegativeInstructionImage; 5500=sound.Voweli]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0 =fixation; 500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block0&amp;gt;&lt;br/&gt;/ trials = [1-2= noreplace(PreInstCong, PreInstInCong)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;/ postinstructions = ()&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block1&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(CongruentPositive, CongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block2&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(IncongruentPositive, IncongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=Block0; 2=Block1; 3=Block2]&lt;br/&gt;/ preinstructions = (page.welcome)&lt;br/&gt;/ postinstructions = (page.end)&lt;br/&gt;&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36171"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;gt;  However, i am not sure about the latency it provides (in my case all of the trials have same latency). I want the response time (saved as latency if possible) to be time between  the stimulus onset (presentation of faces) and the first utterance by the participants.&lt;br/&gt;&lt;br/&gt;That's what the code does, and it's working fine for me. If it doesn't on your system, that's probably an issue with the soundcard or microphone. How well voicerecord works varies greatly between systems and particular hardware.&lt;br/&gt;&lt;br/&gt;You can fidlle around with different voicekeythreshold&amp;nbsp; ( &lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm"&gt;https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm&lt;/a&gt;&lt;/a&gt; ) settings to try and find the correct trip level for your hardware. Make sure your microphone is placed properly, and try a different sound interface if you have one available (external ones are often better than the cheap chipsets found in many PCs or laptops).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36172"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;So now i have another issue with the voice record. I tried to set up my computer sound system to solve this issue. So far i kept the /voicekeythreshold = 3 and the /inputdevice= voice record. I am using a headset with&amp;nbsp; attached microphone. When i set the input volume to 65 or more, the trials end abruptly and i get either very short latency like less than 120 ms (the trial ends after onset of stimulus + 1300 ms) or no latency at all and recordings like this &lt;a href="https://drive.google.com/drive/folders/1bCZ3SenDnX32ouyrC97hfhx3IW6ZiAxA?usp=drive_link"&gt;&lt;a href="https://drive.google.com/drive/folders/1bCZ3SenDnX32ouyrC97hfhx3IW6ZiAxA?usp=drive_link"&gt;https://drive.google.com/drive/folders/1bCZ3SenDnX32ouyrC97hfhx3IW6ZiAxA?usp=drive_link&lt;/a&gt;&lt;/a&gt; .&amp;nbsp; The recording here is weird as it did not record the complete response which is just a vowel and not even a word. &lt;br/&gt;When i keep the input volume to 50 and still /voicekeythreshold = 3 and speak out really loud almost shout then the voice record works fine. But i cannot tell each participant everytime to shout as i have a lot of trials, so do you have any solution for this? i have been struggling with this for atleast a week now, i can send you the code if needed.&lt;br/&gt;&lt;a href="https://drive.google.com/drive/folders/1bCZ3SenDnX32ouyrC97hfhx3IW6ZiAxA?usp=drive_link" id="if_insertedNode_1718115044068"&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36292"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;That's not something any code can solve, you need to try to balance your recording setup properly. At high input volume, it probably picks up too much noise (breathing on the microphone, clothes rustling, etc.; some sound cards will also have a lot of internal noise, badly shielded cables and wobbly connectors can make things worse, as can driver settings like volume levelng / compression, which will amplify any noise).&lt;br/&gt;</description><pubDate>Tue, 11 Jun 2024 14:31:10 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Input device: Voice record (issue with the latency)</title><link>https://forums.millisecond.com/Topic36292.aspx</link><description>&lt;blockquote data-id="36172" class="if-quote-wrapper" unselectable="on" data-guid="1718113226496" contenteditable="false" id="if_insertedNode_1718113225646"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36172" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36172" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36172" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/30/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36172"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36171" class="if-quote-wrapper" unselectable="on" data-guid="1718113226496" contenteditable="false" id="if_insertedNode_1714495343816"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36171" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36171" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36171" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Saru - 4/30/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36171"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;&lt;br/&gt;I am currently trying to program an experiment that records the verbal response provided by the participants. I used the /inputdevice = voice record one and it does record the response and also stores recordings. However, i am not sure about the latency it provides (in my case all of the trials have same latency). I want the response time (saved as latency if possible) to be time between&amp;nbsp; the stimulus onset (presentation of faces) and the first utterance by the participants.&amp;nbsp; I am a beginner in Inquisit and i am not sure what can be done for this. Could you please help me with this?&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/minimumversion = "4.0.2.0"&lt;br/&gt;/ fontstyle = ("Arial", 6.00%, true, false, false, false, 5, 1)&lt;br/&gt;&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/completed = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveHappy&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;/2 = "005_o_f_h_a.jpg"&lt;br/&gt;/3 = "006_m_f_h_b.jpg"&lt;br/&gt;/4 = "007_m_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeAngry&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;/2 = "005_o_f_a_b.jpg"&lt;br/&gt;/3 = "006_m_f_a_a.jpg"&lt;br/&gt;/4 = "007_m_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveFace&amp;gt;&lt;br/&gt;/ items = PositiveHappy &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeFace&amp;gt;&lt;br/&gt;/ items = NegativeAngry &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixation&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ color = black&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item BlankScreen&amp;gt;&lt;br/&gt;/1= ""&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text BlankScreen&amp;gt;&lt;br/&gt;/ items = BlankScreen&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page welcome&amp;gt;&lt;br/&gt;Welcome to the Experiment 2.&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page end&amp;gt;&lt;br/&gt;This is the end. Thank you for your participation. &lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;instruct&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 5%, true)&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ windowsize = (90%, 90%)&lt;br/&gt;/ screencolor = white&lt;br/&gt;&amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;htmlpage CongruentInstruction &amp;gt;&lt;br/&gt;/ file = "In this specific task.htm"&lt;br/&gt;&amp;lt;/htmlpage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveInstructionImage&amp;gt;&lt;br/&gt;/ items = PositiveInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeInstructionImage&amp;gt;&lt;br/&gt;/ items = NegativeInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelI&amp;gt;&lt;br/&gt;/1 = "Bika.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelI&amp;gt;&lt;br/&gt;/ items = VowelI&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelO&amp;gt;&lt;br/&gt;/ items = VowelO&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelO&amp;gt;&lt;br/&gt;/1 = "Boka.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelI; 4500=NegativeInstructionImage; 5500=sound.VowelO ]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstInCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelO; 4500=NegativeInstructionImage; 5500=sound.Voweli]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0 =fixation; 500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block0&amp;gt;&lt;br/&gt;/ trials = [1-2= noreplace(PreInstCong, PreInstInCong)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;/ postinstructions = ()&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block1&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(CongruentPositive, CongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block2&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(IncongruentPositive, IncongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=Block0; 2=Block1; 3=Block2]&lt;br/&gt;/ preinstructions = (page.welcome)&lt;br/&gt;/ postinstructions = (page.end)&lt;br/&gt;&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36171"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;gt;  However, i am not sure about the latency it provides (in my case all of the trials have same latency). I want the response time (saved as latency if possible) to be time between  the stimulus onset (presentation of faces) and the first utterance by the participants.&lt;br/&gt;&lt;br/&gt;That's what the code does, and it's working fine for me. If it doesn't on your system, that's probably an issue with the soundcard or microphone. How well voicerecord works varies greatly between systems and particular hardware.&lt;br/&gt;&lt;br/&gt;You can fidlle around with different voicekeythreshold&amp;nbsp; ( &lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm"&gt;https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm&lt;/a&gt;&lt;/a&gt; ) settings to try and find the correct trip level for your hardware. Make sure your microphone is placed properly, and try a different sound interface if you have one available (external ones are often better than the cheap chipsets found in many PCs or laptops).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36172"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;So now i have another issue with the voice record. I tried to set up my computer sound system to solve this issue. So far i kept the /voicekeythreshold = 3 and the /inputdevice= voice record. I am using a headset with&amp;nbsp; attached microphone. When i set the input volume to 65 or more, the trials end abruptly and i get either very short latency like less than 120 ms (the trial ends after onset of stimulus + 1300 ms) or no latency at all and recordings like this &lt;a href="https://drive.google.com/drive/folders/1bCZ3SenDnX32ouyrC97hfhx3IW6ZiAxA?usp=drive_link"&gt;https://drive.google.com/drive/folders/1bCZ3SenDnX32ouyrC97hfhx3IW6ZiAxA?usp=drive_link&lt;/a&gt; .&amp;nbsp; The recording here is weird as it did not record the complete response which is just a vowel and not even a word. &lt;br/&gt;When i keep the input volume to 50 and still /voicekeythreshold = 3 and speak out really loud almost shout then the voice record works fine. But i cannot tell each participant everytime to shout as i have a lot of trials, so do you have any solution for this? i have been struggling with this for atleast a week now, i can send you the code if needed.&lt;br/&gt;&lt;a href="https://drive.google.com/drive/folders/1bCZ3SenDnX32ouyrC97hfhx3IW6ZiAxA?usp=drive_link" id="if_insertedNode_1718115044068"&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 11 Jun 2024 14:19:28 GMT</pubDate><dc:creator>Saru</dc:creator></item><item><title>RE: Input device: Voice record (issue with the latency)</title><link>https://forums.millisecond.com/Topic36217.aspx</link><description>&lt;blockquote data-id="36172" class="if-quote-wrapper" unselectable="on" data-guid="1715772937649" contenteditable="false" id="if_insertedNode_1715772936979"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36172" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36172" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36172" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 4/30/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36172"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="36171" class="if-quote-wrapper" unselectable="on" data-guid="1715772937649" contenteditable="false" id="if_insertedNode_1714495343816"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36171" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36171" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36171" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Saru - 4/30/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36171"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;&lt;br/&gt;I am currently trying to program an experiment that records the verbal response provided by the participants. I used the /inputdevice = voice record one and it does record the response and also stores recordings. However, i am not sure about the latency it provides (in my case all of the trials have same latency). I want the response time (saved as latency if possible) to be time between&amp;nbsp; the stimulus onset (presentation of faces) and the first utterance by the participants.&amp;nbsp; I am a beginner in Inquisit and i am not sure what can be done for this. Could you please help me with this?&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/minimumversion = "4.0.2.0"&lt;br/&gt;/ fontstyle = ("Arial", 6.00%, true, false, false, false, 5, 1)&lt;br/&gt;&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/completed = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveHappy&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;/2 = "005_o_f_h_a.jpg"&lt;br/&gt;/3 = "006_m_f_h_b.jpg"&lt;br/&gt;/4 = "007_m_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeAngry&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;/2 = "005_o_f_a_b.jpg"&lt;br/&gt;/3 = "006_m_f_a_a.jpg"&lt;br/&gt;/4 = "007_m_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveFace&amp;gt;&lt;br/&gt;/ items = PositiveHappy &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeFace&amp;gt;&lt;br/&gt;/ items = NegativeAngry &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixation&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ color = black&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item BlankScreen&amp;gt;&lt;br/&gt;/1= ""&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text BlankScreen&amp;gt;&lt;br/&gt;/ items = BlankScreen&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page welcome&amp;gt;&lt;br/&gt;Welcome to the Experiment 2.&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page end&amp;gt;&lt;br/&gt;This is the end. Thank you for your participation. &lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;instruct&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 5%, true)&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ windowsize = (90%, 90%)&lt;br/&gt;/ screencolor = white&lt;br/&gt;&amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;htmlpage CongruentInstruction &amp;gt;&lt;br/&gt;/ file = "In this specific task.htm"&lt;br/&gt;&amp;lt;/htmlpage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveInstructionImage&amp;gt;&lt;br/&gt;/ items = PositiveInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeInstructionImage&amp;gt;&lt;br/&gt;/ items = NegativeInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelI&amp;gt;&lt;br/&gt;/1 = "Bika.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelI&amp;gt;&lt;br/&gt;/ items = VowelI&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelO&amp;gt;&lt;br/&gt;/ items = VowelO&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelO&amp;gt;&lt;br/&gt;/1 = "Boka.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelI; 4500=NegativeInstructionImage; 5500=sound.VowelO ]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstInCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelO; 4500=NegativeInstructionImage; 5500=sound.Voweli]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0 =fixation; 500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block0&amp;gt;&lt;br/&gt;/ trials = [1-2= noreplace(PreInstCong, PreInstInCong)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;/ postinstructions = ()&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block1&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(CongruentPositive, CongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block2&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(IncongruentPositive, IncongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=Block0; 2=Block1; 3=Block2]&lt;br/&gt;/ preinstructions = (page.welcome)&lt;br/&gt;/ postinstructions = (page.end)&lt;br/&gt;&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36171"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;gt;  However, i am not sure about the latency it provides (in my case all of the trials have same latency). I want the response time (saved as latency if possible) to be time between  the stimulus onset (presentation of faces) and the first utterance by the participants.&lt;br/&gt;&lt;br/&gt;That's what the code does, and it's working fine for me. If it doesn't on your system, that's probably an issue with the soundcard or microphone. How well voicerecord works varies greatly between systems and particular hardware.&lt;br/&gt;&lt;br/&gt;You can fidlle around with different voicekeythreshold&amp;nbsp; ( &lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm"&gt;https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm&lt;/a&gt;&lt;/a&gt; ) settings to try and find the correct trip level for your hardware. Make sure your microphone is placed properly, and try a different sound interface if you have one available (external ones are often better than the cheap chipsets found in many PCs or laptops).&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36172"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Thankyou so much. It works fine now :) </description><pubDate>Wed, 15 May 2024 11:36:03 GMT</pubDate><dc:creator>Saru</dc:creator></item><item><title>RE: Input device: Voice record (issue with the latency)</title><link>https://forums.millisecond.com/Topic36172.aspx</link><description>&lt;blockquote data-id="36171" class="if-quote-wrapper" unselectable="on" data-guid="1714495344716" contenteditable="false" id="if_insertedNode_1714495343816"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="36171" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="36171" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="36171" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Saru - 4/30/2024&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-36171"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;&lt;br/&gt;I am currently trying to program an experiment that records the verbal response provided by the participants. I used the /inputdevice = voice record one and it does record the response and also stores recordings. However, i am not sure about the latency it provides (in my case all of the trials have same latency). I want the response time (saved as latency if possible) to be time between&amp;nbsp; the stimulus onset (presentation of faces) and the first utterance by the participants.&amp;nbsp; I am a beginner in Inquisit and i am not sure what can be done for this. Could you please help me with this?&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/minimumversion = "4.0.2.0"&lt;br/&gt;/ fontstyle = ("Arial", 6.00%, true, false, false, false, 5, 1)&lt;br/&gt;&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/completed = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveHappy&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;/2 = "005_o_f_h_a.jpg"&lt;br/&gt;/3 = "006_m_f_h_b.jpg"&lt;br/&gt;/4 = "007_m_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeAngry&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;/2 = "005_o_f_a_b.jpg"&lt;br/&gt;/3 = "006_m_f_a_a.jpg"&lt;br/&gt;/4 = "007_m_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveFace&amp;gt;&lt;br/&gt;/ items = PositiveHappy &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeFace&amp;gt;&lt;br/&gt;/ items = NegativeAngry &lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixation&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ color = black&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item BlankScreen&amp;gt;&lt;br/&gt;/1= ""&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text BlankScreen&amp;gt;&lt;br/&gt;/ items = BlankScreen&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page welcome&amp;gt;&lt;br/&gt;Welcome to the Experiment 2.&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page end&amp;gt;&lt;br/&gt;This is the end. Thank you for your participation. &lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;instruct&amp;gt;&lt;br/&gt;/ fontstyle = ("Arial", 5%, true)&lt;br/&gt;/ txcolor = black&lt;br/&gt;/ windowsize = (90%, 90%)&lt;br/&gt;/ screencolor = white&lt;br/&gt;&amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;htmlpage CongruentInstruction &amp;gt;&lt;br/&gt;/ file = "In this specific task.htm"&lt;br/&gt;&amp;lt;/htmlpage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item PositiveInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_h_b.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PositiveInstructionImage&amp;gt;&lt;br/&gt;/ items = PositiveInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item NegativeInstructionImage&amp;gt;&lt;br/&gt;/1 = "004_o_m_a_a.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture NegativeInstructionImage&amp;gt;&lt;br/&gt;/ items = NegativeInstructionImage&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (40%, 40%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelI&amp;gt;&lt;br/&gt;/1 = "Bika.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelI&amp;gt;&lt;br/&gt;/ items = VowelI&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound VowelO&amp;gt;&lt;br/&gt;/ items = VowelO&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item VowelO&amp;gt;&lt;br/&gt;/1 = "Boka.wav"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelI; 4500=NegativeInstructionImage; 5500=sound.VowelO ]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial PreInstInCong&amp;gt;&lt;br/&gt;/ stimulustimes = [0 = text.fixation; 1500 =PositiveInstructionImage; 2500= sound.VowelO; 4500=NegativeInstructionImage; 5500=sound.Voweli]&lt;br/&gt;/ trialduration = 6500&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ correctresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0 =fixation; 500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentPositive&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=PositiveFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IncongruentNegative&amp;gt;&lt;br/&gt;/stimulustimes = [0=fixation;500 = BlankScreen; 1000=NegativeFace]&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ inputdevice = voicerecord&lt;br/&gt;/ validresponse = (anyresponse)&lt;br/&gt;/ trialduration = 3300&lt;br/&gt;/ posttrialpause = 1000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block0&amp;gt;&lt;br/&gt;/ trials = [1-2= noreplace(PreInstCong, PreInstInCong)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;/ postinstructions = ()&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block1&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(CongruentPositive, CongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Block2&amp;gt;&lt;br/&gt;/ trials = [1-4= noreplace(IncongruentPositive, IncongruentNegative)]&lt;br/&gt;/ preinstructions = (htmlpage.CongruentInstruction)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=Block0; 2=Block1; 3=Block2]&lt;br/&gt;/ preinstructions = (page.welcome)&lt;br/&gt;/ postinstructions = (page.end)&lt;br/&gt;&lt;br/&gt;/onexptend = [values.completed = 1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="36171"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;gt;  However, i am not sure about the latency it provides (in my case all of the trials have same latency). I want the response time (saved as latency if possible) to be time between  the stimulus onset (presentation of faces) and the first utterance by the participants.&lt;br/&gt;&lt;br/&gt;That's what the code does, and it's working fine for me. If it doesn't on your system, that's probably an issue with the soundcard or microphone. How well voicerecord works varies greatly between systems and particular hardware.&lt;br/&gt;&lt;br/&gt;You can fidlle around with different voicekeythreshold&amp;nbsp; ( &lt;a href="https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm"&gt;https://www.millisecond.com/support/docs/v5/html/language/attributes/voicekeythreshold.htm&lt;/a&gt; ) settings to try and find the correct trip level for your hardware. Make sure your microphone is placed properly, and try a different sound interface if you have one available (external ones are often better than the cheap chipsets found in many PCs or laptops).&lt;br/&gt;</description><pubDate>Tue, 30 Apr 2024 16:47:47 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>