Google cloud bucket public URL for audio files

Hello,

I am having trouble getting our Google Cloud hosted audio files to actually play in app. Does anyone have advice on how to find the bucket url to add as a file source in the SAB. I have both added the audio files to the SAB and hosted them in a publicly accessible bucket, but they will not play in the app.

Thanks

Do you have the correct bucket name?

I have your project from the other support issue I looked into. One of the audio file in the project is: A01___02_Genesis_______O2TRKBST.mp3

When I try this url:
https://storage.googleapis.com/incilapp/A01___02_Genesis_______O2TRKBST.mp3

I get this error:

<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Details>No such object: incilapp/A01___02_Genesis_______O2TRKBST.mp3</Details>
</Error>

Yeah, the names of the files and bucket have not changed. The audio on previous version of my app worked fine, but now it doesn’t.

Kalaam can host the audio files for you on our server. PM me, or reply to this message if you want more info. A sample link would be https://media.ipsapps.org/your3LetterLanguageCode/audio.

You should test that URL with one of your files.
Testing your URL plus a file name:
https://storage.googleapis.com/incilapp/B01___01_Matthew_____TRKBSTN2DA.mp3
That produces an error:

When I just used just your URL I got a XML file. It said in part:

<Contents>
<Key>Turkish_tur_BST_NT_Drama/B01___01_Matthew_____TRKBSTN2DA.mp3</Key>
<Generation>1662730473240034</Generation>
<MetaGeneration>1</MetaGeneration>
<LastModified>2022-09-09T13:34:33.277Z</LastModified>
<ETag>"df98823d383a46f2562113889e8b13f6"</ETag>
<Size>2052743</Size>
</Contents>

In the Key element we see that there is another part to the path: Turkish_tur_BST_NT_Drama

So the next path to try is: https://storage.googleapis.com/incilapp/Turkish_tur_BST_NT_Drama/B01___01_Matthew_____TRKBSTN2DA.mp3
and that brings up the file like this. Seeing this confirms you have the correct URL.
image

So the URL for the Web Address of the NT is

https://storage.googleapis.com/incilapp/Turkish_tur_BST_NT_Drama

But the OT needs a different source as found in the XML file further down. But this one has a space in it. It must be replaced with the space replacement character %20:

https://storage.googleapis.com/incilapp/Turkish_tur_BST_S_Drama 2
https://storage.googleapis.com/incilapp/Turkish_tur_BST_S_Drama%202

My Rule 1: To save grief with URLs never use spaces in filenames or folder names.

So then test with an OT file:
https://storage.googleapis.com/incilapp/Turkish_tur_BST_S_Drama%202/A01___01_Genesis_______O2TRKBST.mp3
That works, like above.

Thank you! With both your help and Chris’ I was able to get everything up and running again!

Thank you! I was about to message you, but Chris was able to get me up and running again!

Great! Happy app building.