
-
rex_noctis
I have recently been messing around with the
turtle
module on PC and have come up with a few handy programs. I then became curious about the possibilities on Pythonista. I am attempting to make a simple program where the title will move to where the user taps. Theonclick()
does not seem to work. I will include the code I was trying to use below. How would I make a program like this and is there any documentation on turtle in Pythonista (I couldn’t find any)?Code:
from turtle import * speed(0) screen = Screen() def moveTo(x, y): setpos(x, y) screen.onclick(moveTo) screen.listen()
-
rex_noctis
So I have been having a problem for a while.
I am trying to make a program that whilst running will listen for a key word (for example ‘Apple’) and then will activate a piece of code upon hearing it.
I have tried creating a loop that records 2 seconds of audio then performs speech recognition on it, but much of the time, the word is said during the speech recognition process and therefore is not picked up.
How can I get it so that it will keep listening and the only margin of error is the quality of the speech recognition? I can’t think of anything. -
rex_noctis
So long story short, I’m good at playing games with touch screen controls and I’m bad with an Xbox controller. However I like slot of Xbox games so this somewhat limits me. So I was wondering if there was some way I could write a programme to connect to my Xbox via Bluetooth and then use custom controls (possible made using
scene
module) to control it instead of the usual physical controller. I’ll divide this up into a few questions to make it a bit simpler. I know there is a sort of controller on the Xbox app but apparently that can’t be used with games.- Is there a module or other way to connect to more advanced devices via Bluetooth (the
cb
module says it’s only for basic Bluetooth devices)? - Would I be able to control the Xbox through this method without having to modify the Xbox in any way?
- If it’s looking good so far, what are some of the pieces of code I would need to use (quite specifically)?
Thanks in advance.
- Is there a module or other way to connect to more advanced devices via Bluetooth (the
-
rex_noctis
So I am working on a project with the
UI
module, with the end goal of having it published to the App Store. Is there any way to compile and publish the .py and .pyui files together to the App Store or would I have to redesign the entire project with thescene
module? -
-
rex_noctis
@cvp said:
@rex_noctis Did you try the 3 Australian voices?
speech: en-AU Objective-c: en-AU, Name: Catherine speech: en-AU Objective-c: en-AU, Name: Gordon speech: en-AU Objective-c: en-AU, Name: Karen```
How do I determine between those in the
speech.say()
line cause they’re allen-AU
-
rex_noctis
@cvp I have extensively read that post, it hasn’t helped.
-
rex_noctis
So I am building a text to speech program. It currently says text in the default Daniel Encanced voice. I want the program to say stuff in the Australian Male Siri voice. How would I do that? I have tried
speech.say(‘Hello’, ‘en-AU’)
but this uses a different Australian voice. Please help. -
-
rex_noctis
I just realised the error. It’s meant to be
Rect(self.player.position.x-12, self.player.position.y-12, 24, 24)
I forgot the.x
on the end of position. Thanks for making me notice it!