@cvp Thank you so much for your comment. I did’nt know this function. However, as far as I read a description about recognize, recognize function can translate a voice to text from recorded file.
I hope that my application can receive a voice directly, but if I implement following procedure, my hope may be able to be implemented.
- Sound recorder is executed.
- Record a user voice and save it.
- Call speech.recognize
- Translate voice file made by No.2 section to text file.
I’ve just started to try iOS app with pythonista, and I understood how to execute pyui from py file with load_view().
I want to make an application which has multiple screen like top page and setting page, and so on.
My current sample application has 2 buttons which transfer different pyui file by using load_view(), and each button looks work well. However, I notice when I tap exit icon on a screen, other screen remain working. I mean, each screen make new screen when button is tapped.
I dont want to implement a new screen making but screen changing.
Could you please how to change a pyui file?
My sample is following.
For example, Toppage has a button which is connected to goto_setting(), and when the button is tapped, it creates Setting page while Toppage is working.
import ui def return_title(sender): ui.load_view('Toppage').present('sheet') def goto_setting(sender): ui.load_view('Setting').present('sheet') v = ui.load_view() v.present('sheet')