<commit_before># Podcast transcription

## TODO

* [Upload transcriptions directly to GCS](https://cloud.google.com/speech-to-text/docs/async-recognize#speech_transcribe_async_gcs-python)
  once that's no longer a demo feature
* Add all Chinese variants to `alternative_language_codes`
* Add all Mexican Spanish variants to `alternative_language_codes`
* Post-init [validation of dataclasses](https://docs.python.org/3/library/dataclasses.html#post-init-processing)
* When operation ID can't be found, resubmit the podcast for transcription as that might mean that the operation results
  weren't fetched in time and so the operation has expired
* Add heartbeats to transcoding activity
* Consider making `MAX_ENCLOSURE_SIZE` and `MAX_DURATION` configurable via environment variables
* Stopping workers after running `test_workflow.py` is very slow
* Test running the same activity multiple times
* Clean up GCS bucket after running `test_workflow.py`<commit_msg>Add TODO<commit_after># Podcast transcription

## TODO

* [Upload transcriptions directly to GCS](https://cloud.google.com/speech-to-text/docs/async-recognize#speech_transcribe_async_gcs-python)
  once that's no longer a demo feature
* Add all Chinese variants to `alternative_language_codes`
* Add all Mexican Spanish variants to `alternative_language_codes`
* Post-init [validation of dataclasses](https://docs.python.org/3/library/dataclasses.html#post-init-processing)
* When operation ID can't be found, resubmit the podcast for transcription as that might mean that the operation results
  weren't fetched in time and so the operation has expired
* Add heartbeats to transcoding activity
* Consider making `MAX_ENCLOSURE_SIZE` and `MAX_DURATION` configurable via environment variables
* Stopping workers after running `test_workflow.py` is very slow
* Test running the same activity multiple times
* Clean up GCS bucket after running `test_workflow.py`
* If an activity throws an exception, its message should get printed out to the console as well (in addition to
  Temporal's log)
{'fraction_non_alphanumeric': 0.06874695270599708, 'fraction_numerical': 0.0009751340809361287, 'mean_word_length': 5.772277227722772, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1998708', 'n_tokens_mistral': 577, 'n_tokens_neox': 550, 'n_words': 218}