Extension to play .wav files

I passed the path above

It is only a search away AbsolutePath - Get Absolute Path From URI. Using AI2 FilePicker.
Alternatively use a file extension

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

I am made an extension that returns the tts as a wav file path like the one shown above in image.

Well, filePath is a local variable, which is unknown there

This is the translation of what the error message is trying to tell you

Usually you get a red error for that...

Taifun

1 Like

Idk what was there in my mind :smile: Such a silly bug

I will update it and try! Thanks @Taifun and @TIMAI2

No error comes but no audio is played as well

Show your contenturi and your "filePath", or are these the same ?

image
This is the file path I removed the content uri and file picker

Does your default device player (outside of AppInventor) play it back with sound ?

1 Like

yes

heres the file Download audio_1743670138562.wav | LimeWire

I can pm the aia as it contains my upcoming extension is isn't released currently
@Taifun @TIMAI2 (if you aren't able to make out the error from the given data)

Something wrong with the wav file.

I ran it through Audacity (where it does play OK) and exported as a different wav file, loaded this into my test aia and it plays back OK.

A full path was needed to set the source:

file:///storage/emulated/0/Documents/GroqTTS/audio2_1743670138562.wav

1 Like

I don't know maybe running as full path solves the issue lemme try it

Nope adding file as prefix plays it but no sound is heard. Could you please share details about my wav generated by audacity

Here is yours:

mediainfo audio_1743670138562.wav
General
Complete name                            : audio_1743670138562.wav
Format                                   : Wave
Format settings                          : PcmWaveformat
File size                                : 56.3 KiB
Overall bit rate mode                    : Constant
IsTruncated                              : Yes

Audio
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 1
Bit rate mode                            : Constant
Bit rate                                 : 768 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 0.00 Byte (0%)

Here is the one I made from it:

mediainfo audio2_1743670138562.wav
General
Complete name                            : audio2_1743670138562.wav
Format                                   : Wave
Format settings                          : PcmWaveformat
File size                                : 51.8 KiB
Duration                                 : 600 ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 707 kb/s

Audio
Format                                   : PCM
Format profile                           : Float
Codec ID                                 : 3
Codec ID/Hint                            : IEEE 
Duration                                 : 600 ms
Bit rate mode                            : Constant
Bit rate                                 : 705.6 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 22.05 kHz
Bit depth                                : 32 bits
Stream size                              : 51.7 KiB (100%)
1 Like