Git Product home page Git Product logo

Comments (2)

metrue avatar metrue commented on June 15, 2024 1

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.

Cay-Zhang avatar Cay-Zhang commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.