Comments (2)
Yeah, for some case, the actual audio doesn't matter is absolutely true, but there's some cases like voice memo or journal, audio is important and user'd like to play back for some memory.
And it actually need very few code changes,
audio = AVAudioFile(forWriting: url, settings: settings)
audio.write(from: buffer)
Also I know it's not builtin feature in SwiftSpeech is not because it requires too much change, but it's not designed for, I just like to bring up some cases that audio is kinda critical either, thanks for you great work on SwiftSpeech BTW.
from swiftspeech.
SwiftSpeech doesn't support such functionality. To record and recognize audio simultaneously, you will have to dive deeper into the AVAudioEngine
class. Here's a tutorial on how to record audio and save it to a file using AVAudioEngine
. You'll also find the implementation of SwiftSpeech.SpeechRecognizer
helpful.
Besides, I would like to point out that SwiftSpeech is designed for projects that want to integrate a speech recognition feature where the actual audio doesn't matter (such as for searching or text input). For projects that do care about the recorded audio (such as audio recorders or IM apps), it's better to copy SpeechRecognizer.swift
into your project and start working based on that.
from swiftspeech.
Related Issues (15)
- Graceful notification of microphone activation failure HOT 4
- Unable to use with TextToSpeech HOT 5
- SwiftSpeech.Demos.Basic Start recording automatically HOT 1
- install issues HOT 1
- Speech Recognition string does not match a (hard coded) string HOT 1
- 语音识别功能在iOS15模拟器下会失效 HOT 5
- Swift Playgrounds Compatibility HOT 2
- Possible volume conflict between SwiftSpeech and AVAudioPlayer? HOT 2
- SwiftSpeech and Other Languages HOT 1
- IOS 16 beta 2 HOT 2
- Is there a way to get the recorded audio?
- Does it work when there´s no internet connection?
- Automatic stop of recording after some seconds of silence
- Disable recording from somewhere else
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 swiftspeech.