• dwildbore

    I noticed this forum does not follow best security practices for authentication error messages.
    When I logged in I typed my password wrong and I was told my password was incorrect. This confirms my username was correct which is not a good thing to do. Login errors should be generic:

    https://www.owasp.org/index.php/Authentication_Cheat_Sheet#Authentication_and_Error_Messages

    posted in General Discussion read more
  • dwildbore

    In case anyone is wondering I got it working:

    from objc_util import *
    import speech
    import time

    AVAudioSession = ObjCClass('AVAudioSession')
    audioSession = AVAudioSession.sharedInstance()

    oldCategory = audioSession.category()

    audioSession.setCategory_error_(ns('AVAudioSessionCategoryPlayAndRecord'), None)

    speech.say('hello') #like a phone call

    time.sleep(1)
    audioSession.setCategory_error_(ns(oldCategory), None)

    speech.say('hello again') # speaker phone

    posted in Pythonista read more
  • dwildbore

    I should have clarified. I mean like the speaker used during a phone call that you hold up to your ear. Good to know the ear pods work tho, i'm hoping to get a pair! thanks!

    posted in Pythonista read more
  • dwildbore

    Is there away to use the text to speak so that it outputs to the ear speaker and not the speaker phone?

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!