@@ -766,10 +766,6 @@ module. Custom engines must implement the `generate` method:
766766module ScreenKit
767767 module TTS
768768 class CustomEngine < Base
769- # If you're using shell commands, you can include Shell,
770- # which provides helper methods.
771- # extend Shell
772-
773769 # Optional: Define schema path for validation
774770 def self.schema_path
775771 File.join(__dir__, "yourschema.json")
@@ -801,20 +797,18 @@ module ScreenKit
801797 # Write output to output_path
802798 # Optionally log to log_path
803799
804- # Example implementation calling a command:
800+ # Example calling a command (provided by ScreenKit::Shell)
805801 # self.class.run_command "some-command",
806802 # "-o", output_path.sub_ext(".wav"),
807803 # text,
808804 # log_path:
809805
810- # Example implementation using an API:
811- # response = Aitch.post (
806+ # Example using an API (provided by ScreenKit::HTTP)
807+ # response = json_post (
812808 # url: "https://api.example.com/tts",
813- # headers: {
814- # content_type: "application/json",
815- # authorization: "Bearer #{api_key}"
816- # },
817- # options: {expect: 200}
809+ # headers: {authorization: "Bearer #{api_key}"},
810+ # api_key:,
811+ # log_path:
818812 # )
819813 end
820814 end
@@ -842,6 +836,7 @@ The engine name is camelized (e.g., `custom_engine` → `CustomEngine`,
842836
843837- [Search Github](https://github.com/topics/screenkit-tts)
844838- [Google Text to Speech](https://github.com/fnando/screenkit-tts-google)
839+ - [Minimax Text to Speech](https://github.com/fnando/screenkit-tts-minimax)
845840
846841> [!TIP]
847842>
0 commit comments