This project implements real-time speech-to-text functionality using SwiftUI, Swift Concurrency, and iOS's Speech framework.
- Real-Time Transcription: Converts audio to text using
SFSpeechRecognizer. - Swift Concurrency: Manages transcription with
AsyncThrowingStream. - Permission Management: Requests microphone and speech recognition permissions.
- Modular Design: Decoupled logic from the UI for better maintenance and scalability.
- iOS 16.0+
- Xcode 15.4+
- Swift 5.5+
- Clone the repository:
git clone https://github.com/legin098/SpeechToText.git
- Open the project in Xcode:
cd SpeechToText open SpeechToText.xcodeproj - Run the project on a simulator or physical device.
- Ensure you grant microphone and speech recognition permissions when starting the app.
- Press the "Start" button to begin recording and transcribing.
- Press "Stop" to end the transcription.
SpeechToTextService: Manages the speech-to-text logic.
SpeechToTextViewModel: Acts as an intermediary between the view and the service.
SpeechToTextView: User interface built with SwiftUI.
Contributions are welcome. Fork the repository, create a new branch, and open a pull request with your improvements.