【问题标题】:Running praat script in asp.net web app在 asp.net Web 应用程序中运行 praat 脚本
【发布时间】:2012-10-06 10:32:30
【问题描述】:

我正在开发一个 ASP.net Web 应用程序,我希望它与 Praat 脚本配合使用。 例如,我在 Web 应用程序中有 2 个参数(字符串文本,字符串文件名),我想将这两个参数提供给脚本,它只是将“文本”的内容写入名为“文件名”的文件中。 我该怎么办?

【问题讨论】:

    标签: asp.net praat


    【解决方案1】:

    我不确定我是否完全理解了这个问题,但是如果您要问如何运行从命令行将字符串写入文件的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
    

    【讨论】:

      猜你喜欢
      • 2017-11-15
      • 2014-03-26
      • 2023-01-30
      • 2015-08-17
      • 2011-07-08
      • 2013-01-16
      • 2013-04-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多