Comments (2)
I start it like this:
@objc func startVoiceSearch() {
let overlay = VoiceOverlayController()
overlay.start(on: self, textHandler: { text, final in
print("voice output: \(String(describing: text))")
print("voice output: is it final? \(String(describing: final))")
if final {
self.searchControllerView.searchInput.text = text
}
}, errorHandler: { error in
print("voice output: error \(String(describing: error))")
})
}
from voice-overlay-ios.
Hi @IchordeDionysos ,
I actually realised what is the problem. You need to keep a reference to your overlay
variable in your ViewController, or else it won't be owned by anyone and you will lose reference to it. This should solve your problem. Just move the let overlay = VoiceOverlayController()
below your class declaration (as shown in the usage README)
from voice-overlay-ios.
Related Issues (20)
- Crash when dismissed HOT 2
- No option to dismiss in case dismiss did not work HOT 2
- Not able to implement in Project
- After setting up the project, while specking I am getting error(VoiceOverlay-Demo[640:138261] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)) HOT 1
- Title and subtitle text get truncated
- VoiceOverlayController warning Conversion to Swift 5 is available
- Crash when first request permission HOT 7
- App crashed on permissions ios 13 HOT 1
- Not able to run demo project HOT 1
- Voice Audio is not working HOT 3
- Wrong in displaying the controller
- AVAudioEngine Exception HOT 4
- AVAudioEngine Exception & Crash App HOT 1
- SwiftUI Support HOT 4
- Crash while calling and recording at the same time. HOT 1
- remove search screen
- Error Domain=kAFAssistantErrorDomain Code=203
- Crash on iOS 12 and iOS 13 devices
- Fatal Exception: com.apple.coreaudio.avfaudio
- Issue with Unwrapped SpeechRequest in SpeechController Causing Nil Issue in iOS 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from voice-overlay-ios.