plyer icon indicating copy to clipboard operation
plyer copied to clipboard

Added iOS audio recording implementation

Open Nephyx opened this issue 5 years ago • 2 comments

Added audio recording and playback for iOS using Apple's Objective-C API via pyobjus. Audio files are recorded with 44.1 kHz sample rate in WAV format.

Related to pull request #428. Closes issue #282.

Nephyx avatar Oct 12 '18 19:10 Nephyx

Thank you very much, I was looking for this, I was actually looking for STT solution that will work with iOS but then I figured that I might be able to do it myself by sending audio recordings to an external server, Is there any plans for an iOS STT solution?

Also, According to the Supported APIs table Speech to Text (STT) only works on Android but shouldn't it also work on Windows using something like this?: https://pypi.org/project/SpeechRecognition/1.2.3/

burgil avatar May 31 '21 06:05 burgil

Hi there, guys do You still support audio recording for iOS (?) I checked out code from https://github.com/Nephyx/plyer/blob/ios_audio/plyer/platforms/ios/audio.py. Basically there are some issues ( iOS 15.2, iPhone 7). The output looks like this:

[INFO ] [Base ] Start application main loop 2022-02-08 15:12:41.751431+0200 domi[8191:4020460] Unbalanced calls to begin/end appearance transitions for <SDL_uikitviewcontroller: 0x7f7be77cdd80>. 2022-02-08 15:12:41.752343+0200 domi[8191:4020460] Unbalanced calls to begin/end appearance transitions for <SDL_uikitviewcontroller: 0x7f7be77cdd80>. 2022-02-08 15:13:20.228573+0200 domi[8191:4020460] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000038b3ca0> F8BB1C28-BAE8-11D6-9C31-00039315CD46 2022-02-08 15:13:20.286350+0200 domi[8191:4020460] CreateDataFile failed 2022-02-08 15:13:20.287093+0200 domi[8191:4020460] Couldn't create a new audio file object (lldb)

[Thread 1 : EXC_BAD_ACCESS (Code = 1, address = 0x30000008)]

is it a problem with device memory ?? Could You give any tips ?

banasiakmichal avatar Feb 08 '22 13:02 banasiakmichal