You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: enhance OCI subtitle translation with comprehensive documentation and JSON support
- Add comprehensive README with setup instructions and language support tables
- Create config_example.yaml for easy configuration setup
- Add translate_json.py for JSON subtitle file translation support
- Enhance generate_srt_from_audio.py with improved logging and error handling
- Update translate_srt.py with async document translation and better job monitoring
- Add requirements.txt with OCI SDK and PyYAML dependencies
- Include detailed language code mappings for both Speech and Translation services
- Improve error handling and logging throughout all scripts
- Add support for 30+ target languages with proper language codes
Updated as well with richard palissery's latest commits
Copy file name to clipboardExpand all lines: oci-subtitle-translation/README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,9 @@ This automated approach significantly reduces the time and effort required to cr
70
70
71
71
## 2. Usage
72
72
73
+
> Before running the script, make sure your input `.mp3` file has already been uploaded to the OCI Object Storage **input bucket** defined in your `config.yaml`.
74
+
> The script does **not** accept local files it looks for the file in the cloud bucket only.
75
+
73
76
This solution works in two steps:
74
77
75
78
1. First, we generate SRT from audio:
@@ -155,4 +158,4 @@ Licensed under the Universal Permissive License (UPL), Version 1.0.
155
158
156
159
See [LICENSE](../LICENSE) for more details.
157
160
158
-
ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. FURTHERMORE, ORACLE AND ITS AFFILIATES DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT ANY REVIEW. USE AT YOUR OWN RISK.
161
+
ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. FURTHERMORE, ORACLE AND ITS AFFILIATES DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT ANY REVIEW. USE AT YOUR OWN RISK.
log_step(f" • Output will be saved to: {config_yaml['speech']['bucket_name']}/transcriptions/")
135
+
log_step(f" • Output will be saved to: {create_transcription_job_response.data.output_location.prefix}{config_yaml['speech']['namespace']}_{config_yaml['speech']['bucket_name']}_{file_name}.srt")
136
+
137
+
# Wait for job completion and get output file name
0 commit comments