How can i make e clickable once “a” is completed

I am using the ABAKADA book. so all in all it will only be,

15 times 5 = 75 plus 2 = 77 sounds
A,E,I,O,U
ba,be,bi,bo,bu
Ka, Ke, Ki, Ko, Ku
da,de,di,do,du
ga,ge,gi,go,gu
ha,he,hi,ho,hu
la,..
ma,..
na,..
ng*only one
mga..only one
pa,..
ra,..
sa,..
ta,..
wa,..
ya..

I apologize. I really don't know how to do it logically.

This post was flagged by the community and is temporarily hidden.

How will I make it without using a lot of vertical arrangements? I am doing everything again and removing the other vertical screens. I will send it once it is done.

Please don't bump your topic, @ABG will response when see this.

Record your 77(?) sound files following a strict naming pattern matching the 77(?) little unique pieces of text (phonemes?) that you offer to pronounce.

Make sure they fit in the Media folder. You might have to go back and find a good sound file format to save space but still work with the AI2 sound or player component.

Load them all into an Empty project and see if it will pass a Build.

Type up your complete phoneme list into a CSV text table, grouping them by leading consonant, using Notepad or a simple text editor. Upload it into your media folder under the name phonemes.csv

You started that earlier in this thread.

Learn these basic blocks...

I can continue after breakfast and chores.

People in other time zones may chip in.

1 Like

Further thoughts...

After you have your phoneme CSV file, make copies with subsets of it, named level1.csv, level2.csv, ... , matching your teaching curriculum.

Make a text file called curriculum.txt, listing the file names of your level files in increasing order of difficulty.

Use these files to drive your presentation and testing engine.

1 Like

Here is a simple sample of using text JOINs to generate a phoneme.
I used the Text To Speech component for the translation, because I don't have well named phoneme sound files:

image

phonics.aia (2.1 KB)

I built this in 15 minutes.

2 Likes

I will try to run file you attached here. I deleted Level 3, and deleted every vertical arrangement. I am only using one arrangement based on what you told me before, and hiding the buttons instead. I am trying to finalize Listening Exercise 1. Instead of Level 1,2,3, I will just make 2 Listening Exercise. I will post it here once I am done. Thank you for your help.

I would like to change the colors of buttons to red when they are clicked, and have them revert to blue once the sound has finished playing. How can I achieve this without repeating code?

For Listening Exercise 2, a sound should play when a specific button is clicked. I've included the .aia file for your reference. I have already deleted the previous project and started over, utilizing a few vertical arrangements. Thank you!
change color
FilPHLa_Final.aia (1.3 MB)

Try and post the blocks here...

You have dozens of sound components, but no sound files.

You only need one Player component, and you need at least one sound file per phoneme.

The Player component has an event that fires when it has finished playing the requested sound file.

The Sound component doesn't have such an event.

You can't avoid having sound files, so record a few to get started.
You wouldn't want to hear any sound files made by me.

1 Like

Here is a sample, using downloaded sound files:
image

blocks:

Designer:

player_buttons.aia (35.7 KB)

Sample run:
Sample run

1 Like

The changing of colors is working now. Thank you very much. I already put the sound files as well.

Now, I put a back button in Listening_Exercise1 (a screen)
I hid the back button when Listening_Exercise1 Initialize so it will appear in the next pace instead.

I want the back button to go the previous screen. For example "a" next is "ba" the image and sound component for "ba" will be shown, but once I click the back button, it will return to image "a" and " component "a". Since I have a lot of buttons, images and sound components, I am trying to use these blocks. Could you please help me figure it out?
image

FilPHLa_Final (1).aia (2.7 MB)

In this screen, I have 2 buttons and 2 vertical arrangements.
image

Vertical Arrangement 1. Home (User can choose which listening exercise they want to do first. - buttons)
Vertical Arrangement 2: ListeningExercise_1

image

when I am in Vertical Arrangement: ListeningExercise_1. If I click button "a" it will open another screen called "Listening_Exercise1" with a start value "aa.img, SoundA" ( i don't know if this is possible, this is the plan I came up, please help.), if I click button "ba" it will open the "Listening_Exercise1" screen again with a start value "baa.img, SoundBa".

image
when I click that it should open another screen (The main purpose of this Vertical Arrangement is if the user wants to jump with a particular phonetic sound they could skip the other sounds instead of starting from "a" over and over again.

Is this possible?

This is what I've tried so far.

Thank you very much.

image
I have 77 buttons, I made until Button54, I couldn't add anymore. I don't know why.

You still haven't learned the lesson of Don't Repeat Yourself (DRY).

I recommend you take this tutorial, to see how to reuse components from a list:

https://appinventor.mit.edu/explore/ai2/quizme

1 Like

Thank you. I will try again.

Here is a very small app that lets you play each phoneme.


phonics1.aia (2.6 MB)

Designer

1 Like

I don't understand. How did you make sure that the button, image, and sound is equal with each other? I ran the app that you provided, and they are all correct. I honestly don't understand the blocks you showed me. Sorry, I am quite slow when it comes to this, my brain is not good in understanding them fully. I tried to read the information in the link you gave me on how to do DRY. I still don't understand how will I apply it to my app.

Thank you for trying to help me, I appreciate you.