Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hewigovens committed May 6, 2016
1 parent 0cf263a commit 4dec914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TLSphinx/Decoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class Decoder {
//Sphinx expect words of 2 bytes but the NSFileHandle read one byte at time so the lenght of the data for sphinx is the half of the real one.
let dataLenght = data.length / 2
let numberOfFrames = ps_process_raw(psDecoder, UnsafePointer(data.bytes), dataLenght, SFalse, SFalse)
let hasSpeech = in_sppech()
let hasSpeech = in_speech()

switch (speechState) {
case .Silence where hasSpeech:
Expand All @@ -79,7 +79,7 @@ public class Decoder {
return numberOfFrames
}

private func in_sppech() -> Bool {
private func in_speech() -> Bool {
return ps_get_in_speech(psDecoder) == 1
}

Expand Down

0 comments on commit 4dec914

Please sign in to comment.