Recommended Python / Snack setup: Call Snack in Tcl shell
July 21, 2018 ยท View on GitHub
Here are specific instructions on how to setup your Windows machine to run opensauce-python. On Windows, it is recommended to install Anaconda's Python distribution, not the release from the official Python organization.
Recommended Python / Snack setup: Call Snack in Tcl shell
-
Install Anaconda. It comes with the NumPy and SciPy packages pre-installed. Either 32-bit or 64-bit versions should work.
-
Install ActiveState's ActiveTcl. Be sure to pick the 32-bit version. The 64-bit version will not work with Snack.
-
Download Snack v2.2.10, Binary release for Windows with Tcl/Tk 8.1-8.4
-
Unzip the file to a folder, and in the resulting folder, double-click on
install.tcl. This will install Snack.
We have successfully run Snack in Tcl using Active Tcl version 8.5, 32-bit.
Alternate Python / Snack setup: Allows Snack to be called via Tkinter
Note: Please take a look at #26, so you are aware of the issue involved in using Python's Tkinter library.
If you want to setup your machine so that opensauce-python can call Snack from Python, the steps are more complicated.
-
Install Anaconda, the 32-bit version. Anaconda comes with the NumPy and SciPy packages pre-installed. Be sure to use 32-bit version, even if you have a 64-bit Windows operating system.
-
Download the latest version of Snack Speech Toolkit "Binary release for Windows with Python 2.3" and unzip the file. Read the installation notes for Snack and Python.
-
Open a Windows command prompt and type
> where anacondato find out where Anaconda is installed. For example, if you installed Anaconda for all users, it might be installed at
C:\ProgramData\Anaconda2. -
Follow the installation notes for Snack. Copy
tkSnack.pyto theLibdirectory. Assuming Anaconda is installed atC:\ProgramData\Anaconda2,tkSnack.pywould be copied toC:\ProgramData\Anaconda2\Lib. Copy thesnacklibfolder to thetcldirectory. Assuming the same Anaconda installation directory,snacklibwould be copied toC:\ProgramData\Anaconda2\tcl.Now Python will be able to find Snack and call its methods.
-
From your Windows start menu, search for "Anaconda Prompt" and run this program. You should see a command line prompt, where you can now run commands like
> python -m opensauce -h
REAPER setup
-
Install Cygwin
-
Install the Cygwin packages
git,make,cmake,gcc-core,gcc-g++. -
Run the Cygwin program, so that you see a terminal window.
-
Follow the instructions in the REAPER Git repository README and type the following commands in the terminal window:
$ git clone https://github.com/google/REAPER.git $ cd REAPER $ mkdir build $ cd build $ cmake .. $ makeNow the executable file
reaper.exewill be in the folder [your Cygwin home directory]/REAPER/build -
Add
C:\cygwin\bin(32-bit Cygwin) orC:\cygwin64\bin(64-bit Cygwin) to your environment variable namedPATH. This step is needed, so that whenreaper.exeis called on the command line, the operating system can find thecygwin1.dllfile it needs.
Currently, there is no Python package for REAPER available on Windows, so if you want to use REAPER, you have to build the executable.