Line-cook is a cooking-helper app for iOS that utilizes iPhone's speech-synthesis/speech-recognition to allow users to cook while their device reads recipe steps aloud to them. You can get the best sense for how it works by watching this video demo.
- Search for recipes via the BigOven API
- Choose a recipe from search results
- View recipe ingredients and steps and issue voice commands
- Create an account to save favorite recipes
Command | Result |
---|---|
Start | Begins recipe recitation |
Next | Reads off next step in recipe |
Repeat | Repeats current step in recipe |
Quit | Disables listener |
Line-Cook is a native JavaScript app built on the Apache Cordova mobile platform
Line-Cook utilizes OpenEars to enable speech recognition and speech synthesis on iOS
- OS X Mavericks or higher (though it may work on earlier versions)
- Xcode
- Node and Node Package Manager (npm)
-
From the command line, using npm, download Apache Cordova.
sudo npm install -g cordova
This will require root access. -
Clone the line-cook repository
-
From the command line, navigate to
line-cook/workshop
-
From this directory , add the iOS mobile platform. From the command line, type:
cordova platform add ios
-
You will also need this command:
npm install -g ios-sim
-
See that the platform was added successfully by typing this command:
cordova platform ls
You should seeInstalled platforms: ios 3.8.0
.NOTE: The following steps are due to a bug in the OpenEars speech processing library, and require some modifications to Xcode. A more permanent fix will be available shortly.
-
Open Xcode, and navigate to "Open Another Project"
-
Go to
line-cook/workshop/platforms/ios
and openWorkshop.xcodeproj
-
Once the project navigator is open, click on Workshop (the first on the list)
-
This will open a
Workshop.xcodeproj
window with different settings.
- in the "General" setting, scroll down to "Linked Frameworks and Libraries"
- hit the + at the bottom, to add another library
- In the next window that opens, click Add Other...
- navigate to
line-cook/OpenEars/src/ios/Framework
- Choose
Kal16.framework
- Click Open
- Save the project
###Instructions (JavaScript)
- Navigate to
line-cook/workshop/www/js
- Open
app.js
- Line 1 reads:
var serverUrl = "http://10.0.2.210:3000"
- change this value to your own computer's IP address, to serve port 3000
- save the file
###Instructions (Ruby)
- In a new shell, navigate to
line-cook/simple_backend
bundle install
for required gems- launch the thin server with:
bundle exec thin start