Home > data-import > convert_speech_coding.m

convert_speech_coding

PURPOSE ^

% This is a script to convert the speech coding files into cevent format.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

% This is a script to convert the speech coding files into cevent format.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %% This is a script to convert the speech coding files into cevent format.
0002 
0003 
0004 subjs = [2918:2924];
0005     
0006 for s = 1:length(subjs)
0007     
0008     sid = subjs(s);
0009     subj_info = get_subject_info(sid);
0010     kid_id = subj_info(4);
0011     subj_dir = get_subject_dir(sid);
0012     speech_dir = [subj_dir '/speech_transcription_p/'];
0013     in_file = sprintf('%sraw_speech_%d.txt', speech_dir, kid_id);
0014     out_file = sprintf('%sspeech_%d.txt', speech_dir, kid_id);
0015     command = sprintf('python srt2speechtxt.py %s %s', in_file, out_file);
0016     
0017     system(command)
0018     
0019 end
0020 
0021

Generated on Tue 23-May-2017 03:00:58 by m2html © 2005