From 9df317569f804a3d9c7533dfc206ea84b171c0f4 Mon Sep 17 00:00:00 2001 From: LeSingh1 Date: Sun, 17 May 2026 23:54:52 -0700 Subject: [PATCH] examples(audio): use env -S so shebang works on Linux The shebangs in audio.py, speech_to_text.py, and text_to_speech.py omitted -S, which makes /usr/bin/env on Linux treat the entire remaining string ("rye run python") as a single argv token and fail with 'no such file or directory'. CONTRIBUTING.md already documents the correct form `#!/usr/bin/env -S rye run python`, and the rest of examples/ (async_demo.py, demo.py, streaming.py, video.py) uses the -S flag with poetry/python. Bring these three in line. --- examples/audio.py | 2 +- examples/speech_to_text.py | 2 +- examples/text_to_speech.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/audio.py b/examples/audio.py index af41fe601b..bee1c66f99 100755 --- a/examples/audio.py +++ b/examples/audio.py @@ -1,4 +1,4 @@ -#!/usr/bin/env rye run python +#!/usr/bin/env -S rye run python from pathlib import Path diff --git a/examples/speech_to_text.py b/examples/speech_to_text.py index cc3f56b424..ed007099c7 100755 --- a/examples/speech_to_text.py +++ b/examples/speech_to_text.py @@ -1,4 +1,4 @@ -#!/usr/bin/env rye run python +#!/usr/bin/env -S rye run python import asyncio diff --git a/examples/text_to_speech.py b/examples/text_to_speech.py index ac8b12b0ab..1603eb3391 100755 --- a/examples/text_to_speech.py +++ b/examples/text_to_speech.py @@ -1,4 +1,4 @@ -#!/usr/bin/env rye run python +#!/usr/bin/env -S rye run python import time import asyncio