![]() ![]() If Praat is running, then the class work fine. It appears that the calls to Praat are not launching the program, and the application is failing. I'm calling Praat from the command line from another application on a Linux CentOS 7 server. ![]() I'm a self-taught programmer diving into the deep end of linux management. On, at 21:42, Carly Born via groups.io wrote: To give you any more guidance, I would need many more details, like exactly what you did when, what you expected (or hopen) to happen, and what happened instead. In all cases, if you do "/your/path/to/praat -run /your/path/to/your/script" via some sort of "system" command (but how do you try to call it?), then that would start up a new Praat that runs your script (this should work on all platforms, and you don't need the no-GUI edition). You say you are also calling Praat from another application. an Objects window and a Picture window to start with), plus the so-called no-GUI edition for Linux, which can only run scripts from the command line and never pops up any window (but the normal edition of Praat can do that as well). It seems that you have two different editions of Praat on your computer: the interactive one with a graphicsl user interface (i.e. I'm having trouble figuring out how to get it started so that my application can use it.ĭoes this help? I will admit, I only sort of know what I'm doing.Ĭarleton College | 50 | Thu, at 3:22 PM Boersma Paul via groups.io wrote: I saw this also in the documentation for sendpraat, that it needs to call to a running instance of Praat. Right now, it's trying to call via the command line but it is only successfully doing so if Praat is already an application running (launched) on the server. I have an application with a grails back-end that calls to Praat to detect pitch of recorded files. On, at 23:00, Carly Born via groups.io wrote: If it doe snot work, then specify exactly how you try to call Praat from your application, i.e. This will always run a new instance of Praat, without GUI, closing it when the script is done. your/path/to/praat -run /your/path/to/your/script Make sure that this system command calls something like I assume that your application can use a "system" command of some sort. But neither are launching Praat.Ĭarleton College | 50 | Thu, at 4:17 PM Boersma Paul via groups.io wrote: Praat the application is in /praat and called praat, although I also have praat_nogui. praat/praat -run /praat/praat_scripts/.praat /path/to/file.wav The application is calling a command that looks like this: On, at 20:22, Carly Born via groups.io wrote: But where is that information supposed to go, and does that information end up there or not? Can you share the script? That would help as well. For instance, is your script supposed to save a sound file, and is that sound file created or not? The name is ".praat", which suggests that it is writing information somewhere. That is, what did you do exactly, what prexcieely did you expect to happen, and what happened instead. To move this discussion any further, I need all the details. Some of these examples require the sendpraat program, which you can download binary and source versions of from the Praat website.You use of the term "launch" suggests to me that you expected Praat to launch with a GUI, whereas Praat will just run the script without a GUI, and then quit, if you call Praat in the way you cite. And indeed, other languages, especially statically or JIT compiled ones like Julia, C, Rust, Go, or Java will run faster than the Python versions will. But, this is conceivably possible in any language that allows you to call outside programs, so do not feel as though this is your only option. You are free to use that module (note that it bears a different software license than the rest of the code in this book, namely LGPLv2.1) to follow along. The example other language used here will be Python, in part because I have already written a module called PraatCommands that allows for easy calling of command line and graphical Praat functionality. However, it is my desire to include examples of code that utilize Praat’s ability to be called from other programs so that you may see how you can use Praat as the workhorse, so to speak, in your own code in other languages. This may seem like a strange place to start. Here, the examples will make use of Python. This chapter will introduce you to ways that you can utiize Praat and its scripts from within another program or programming language. 2 Using Praat Functionality Outside of the Praat Program ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |