Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
github.com/alexruperez/SpeechRecognizerButton
UIButton subclass with push to talk recording, speech recognition and Siri-style waveform view.
SpeechRecognizerButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SpeechRecognizerButton'
github "alexruperez/SpeechRecognizerButton"
dependencies: [
.package(url: "https://github.com/alexruperez/SpeechRecognizerButton.git")
]
Add NSMicrophoneUsageDescription
and NSSpeechRecognitionUsageDescription
keys to your Info.plist
file containing a description of how your app will use the voice recording and speech recognition.
button.authorizationErrorHandling = .openSettings(completion: ...)
button.authorizationErrorHandling = .custom(handler: { error in
// TODO: Your code here!
})
button.resultHandler = { recordURL, speechRecognitionResult in
// TODO: Your code here!
}
button.errorHandler = { error in
// TODO: Your code here!
}
Just set weak var waveformView: SFWaveformView?
property or use the Interface Builder outlet.
Just set weak var activityIndicatorView: UIActivityIndicatorView?
property or use the Interface Builder outlet.
Just set the following properties by code or use the Interface Builder inspectables.
button.audioSession...
button.recordURL = ...
button.audioFormatSettings = [AV...Key: ...]
button.maxDuration = ...
button.locale = Locale....
button.taskHint = SFSpeechRecognitionTaskHint....
button.queue = OperationQueue....
button.contextualStrings = ["..."]
button.interactionIdentifier = "..."
button.animationDuration = ...
button.shouldVibrate = ...
button.shouldSound = ...
button.pushToTalk = ...
button.speechRecognition = ...
button.cancelOnDrag = ...
button.shouldHideWaveform = ...
button.cornerRadius = ...
button.borderColor = ...
button.borderWidth = ...
button.selectedColor = ...
button.highlightedColor = ...
button.disabledColor = ...
button.highlightedAlpha = ...
Just set the following properties by code or use the Interface Builder inspectables.
waveformView.waveColor = ...
waveformView.numberOfWaves = ...
waveformView.primaryWaveLineWidth = ...
waveformView.secondaryWaveLineWidth = ...
waveformView.idleAmplitude = ...
waveformView.frequency = ...
waveformView.density = ...
waveformView.phaseShift = ...
waveformView.amplitude = ...
alexruperez, contact@alexruperez.com
SpeechRecognizerButton is available under the MIT license. See the LICENSE file for more info.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.