on your browser to run the application.
- You can extract the audio and store it in Cloud Object Storage in just 3 steps:
- Enter a `Bucket Name` to get started.

1. Upload the video files `earnings-call-train-data.mp4`, `earnings-call-test-data.mp4` & `earnings-call-Q-and-A.mp4` from the `data` directory of the cloned repo and click on `Upload` button.

2. Click on `Extract Audio` button to extract the audio.

3. Download the `earnings-call-test-data.flac` & `earnings-call-Q-and-A.flac` as shown, it will be used in the [second code pattern](https://github.com/IBM/build-custom-stt-model-with-diarization) from the series.

### Summary
We have seen how to extract audio from video files and store the result in Cloud Object Storage. In the [next code pattern of the series](https://github.com/IBM/build-custom-stt-model-with-diarization) we will learn how to train a custom Speech to Text model to transcribe the text from the extracted audio files.
## Troubleshooting
- CLIENT ERROR: An error occurred (BucketAlreadyExists) when calling the CreateBucket operation: Container textmining exists with a different storage location than requested.
>This is a common error that occurs if the specified bucket name is already present in some storage location.

- In the repo parent folder, open the **credentials.json** file and delete the `bucket_name` from the json file and refresh the application. Use a different bucket name instead.
{
"apikey": "*****",
"cos_hmac_keys": {
"access_key_id": "*****",
"secret_access_key": "*****"
},
"endpoints": "*****",
"iam_apikey_description": "*****",
"iam_apikey_name": "*****",
"iam_role_crn": "*****",
"iam_serviceid_crn": "*****",
"resource_instance_id": "*****",
"bucket_name": "text-mining"
}
>NOTE: Make sure to delete the `,` at the end of `resource_instance_id` as it its a json file.
## License
This code pattern is licensed under the Apache License, Version 2. Separate third-party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the [Developer Certificate of Origin, Version 1.1](https://developercertificate.org/) and the [Apache License, Version 2](https://www.apache.org/licenses/LICENSE-2.0.txt).
[Apache License FAQ](https://www.apache.org/foundation/license-faq.html#WhatDoesItMEAN)