Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Initial release of Spokestack framework #1

Merged
merged 27 commits into from Oct 17, 2018
Merged

Initial release of Spokestack framework #1

merged 27 commits into from Oct 17, 2018

Conversation

kwylez
Copy link
Contributor

@kwylez kwylez commented Oct 11, 2018

No description provided.

Initial commit

- Google cocoapod dependencies

Project meta

- new classes

Project meta

- new classes

moved OSStatus returned methods to private scope and stubbed out new wrapper methods

adding example project for future usage
…llerdelegate implementation

Refactored enums with SP prefix

SP prefix for the params
- initial commit
- new classes
- Standard Google Configuration
updated framework

adding the framework build directory to ignore

confidence needs to be a Float

implemented the delegate methods and logic for returning a SPSpeechContext

updated framework

ignore the framework build directory

Project meta

clean up
case audioSessionSetup(String)
}

public enum SpeechPipleError: Error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SpeechPipelineError?

// Configuration settings file format documentation can be found at:
// https://help.apple.com/xcode/#/dev745c5c974

THIRD_PARTY_FRAMEWORK_PATH = ${SRCROOT}/Frameworks
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is gross, thanks Google.


do {

try AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode: .spokenAudio, options: .defaultToSpeaker)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I didn't know that AVAudioSession had a mode for speech. Of course there's the mysterious voicePrompt mode too…


/// We recommend sending samples in 100ms chunks

let chunkSize: Int = Int(0.1 * Double(AudioController.shared.sampleRate) * 2)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this results in 16000*0.1*2=3200 so 0.3125ms chunks? My math must be wrong somehow.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, the 2 is assuming that the input is stereo.

@noelweichbrodt noelweichbrodt merged commit 5a643e0 into spokestack:development Oct 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants