
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
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
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.
Research
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.