2012-10-16 26 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 
相關問題