2012-10-16 28 views
0

我正在处理一个ASP.net web应用程序,我希望它与Praat脚本配合。 例如,我在Web应用程序(字符串文本,字符串文件名)中有2个参数,我想将这两个参数赋给脚本,它只是将“文本”的内容写入名为“文件名”的文件中。 我怎么能管理这个?在asp.net web应用程序中运行praat脚本

回答

0

我不确定我是否完全理解了这个问题,但是如果您问如何运行一个从命令行(我猜测可能足够)将一个字符串写入文件的praat脚本,这样的脚本

# Contents of script.praat 
form Output to file... 
    sentence String Your awesome string with spaces 
    word Filename /path/to/file 
endform 

# These are the same variable names as in the form 
# but with a lowercase initial 
string$ > 'filename$' 

应该这样做。然后你可以从命令行运行这个命令(如果你是从asp.net开始的,可能类似this?)如

praat script.praat "some other string with spaces" new_filename.txt 
相关问题