I have a very difficult problem that I’ve been really struggling with… Here’s my situation:
When a user presses a button there are two actions happening: The first one is requesting the Google Cloud Text to Speech API (I solved this), then there’s audio Content in the Output with binary data. The second action is uploading the audio file to the Google Cloud Storage, and this is my problem. I cannot figure out how to make the right request to create an audio mp3 object in the storage with the binary data. This is the API Base URL: “https://storage.googleapis.com/upload/storage/v1/b/bucket name/o”
Can somebody please tell me what to include in the query parameters and the JSON body?
Really need a solution here!