This repository contains an example application to demonstrate how to use the Speech to Text functionality of the Watson Developer Cloud Swift SDK.
- iOS 8.0+
- Xcode 9.0+
- Swift 4.0+
This project uses Carthage to manage dependencies. You can install Carthage using Homebrew.
> brew install carthage
- Clone the repository:
git clone https://github.com/watson-developer-cloud/speech-to-text-swift.git
- Build the dependencies:
carthage update --platform iOS
. - Copy
CredentialsExample.swift
toCredentials.swift
:cp CredentialsExample.swift Credentials.swift
- Open
Speech to Text.xcodeproj
in Xcode - Update your Speech to Text instance's credentials in
Credentials.swift
- Build and run the app!
Note on credentials: If the credentials generated by the Watson Service are in the form of API Key, then you can either replace the
username
with the stringapikey
and use the API Key as password, or change the methods to use the constructor that takes as input parameter theapiKey
parameter only.