diff --git a/Cargo.toml b/Cargo.toml index c5479b26..4c2c91a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,40 +47,40 @@ speak = ["dep:rodio", "dep:pkg-config"] [[example]] name = "prerecorded_from_file" -path = "examples/transcription/prerecorded/prerecorded_from_file.rs" +path = "examples/transcription/rest/prerecorded_from_file.rs" required-features = ["listen"] [[example]] name = "callback" -path = "examples/transcription/prerecorded/callback.rs" +path = "examples/transcription/rest/callback.rs" required-features = ["listen"] [[example]] name = "make_prerecorded_request_builder" -path = "examples/transcription/prerecorded/make_prerecorded_request_builder.rs" +path = "examples/transcription/rest/make_prerecorded_request_builder.rs" required-features = ["listen"] [[example]] name = "prerecorded_from_url" -path = "examples/transcription/prerecorded/prerecorded_from_url.rs" +path = "examples/transcription/rest/prerecorded_from_url.rs" required-features = ["listen"] [[example]] name = "simple_stream" -path = "examples/transcription/live/simple_stream.rs" +path = "examples/transcription/websocket/simple_stream.rs" required-features = ["listen"] [[example]] name = "microphone_stream" -path = "examples/transcription/live/microphone_stream.rs" +path = "examples/transcription/websocket/microphone_stream.rs" required-features = ["listen"] [[example]] name = "text_to_speech_to_file" -path = "examples/speak/text_to_speech_to_file.rs" +path = "examples/speak/rest/text_to_speech_to_file.rs" required-features = ["speak"] [[example]] name = "text_to_speech_to_stream" -path = "examples/speak/text_to_speech_to_stream.rs" +path = "examples/speak/rest/text_to_speech_to_stream.rs" required-features = ["speak"] diff --git a/examples/speak/text_to_speech_to_file.rs b/examples/speak/rest/text_to_speech_to_file.rs similarity index 100% rename from examples/speak/text_to_speech_to_file.rs rename to examples/speak/rest/text_to_speech_to_file.rs diff --git a/examples/speak/text_to_speech_to_stream.rs b/examples/speak/rest/text_to_speech_to_stream.rs similarity index 100% rename from examples/speak/text_to_speech_to_stream.rs rename to examples/speak/rest/text_to_speech_to_stream.rs diff --git a/examples/transcription/prerecorded/callback.rs b/examples/transcription/rest/callback.rs similarity index 100% rename from examples/transcription/prerecorded/callback.rs rename to examples/transcription/rest/callback.rs diff --git a/examples/transcription/prerecorded/make_prerecorded_request_builder.rs b/examples/transcription/rest/make_prerecorded_request_builder.rs similarity index 100% rename from examples/transcription/prerecorded/make_prerecorded_request_builder.rs rename to examples/transcription/rest/make_prerecorded_request_builder.rs diff --git a/examples/transcription/prerecorded/prerecorded_from_file.rs b/examples/transcription/rest/prerecorded_from_file.rs similarity index 100% rename from examples/transcription/prerecorded/prerecorded_from_file.rs rename to examples/transcription/rest/prerecorded_from_file.rs diff --git a/examples/transcription/prerecorded/prerecorded_from_url.rs b/examples/transcription/rest/prerecorded_from_url.rs similarity index 100% rename from examples/transcription/prerecorded/prerecorded_from_url.rs rename to examples/transcription/rest/prerecorded_from_url.rs diff --git a/examples/transcription/live/microphone_stream.rs b/examples/transcription/websocket/microphone_stream.rs similarity index 100% rename from examples/transcription/live/microphone_stream.rs rename to examples/transcription/websocket/microphone_stream.rs diff --git a/examples/transcription/live/simple_stream.rs b/examples/transcription/websocket/simple_stream.rs similarity index 100% rename from examples/transcription/live/simple_stream.rs rename to examples/transcription/websocket/simple_stream.rs diff --git a/src/listen/mod.rs b/src/listen/mod.rs index e6507806..1caafd88 100644 --- a/src/listen/mod.rs +++ b/src/listen/mod.rs @@ -1,4 +1,4 @@ //! Listen module -pub mod live; -pub mod prerecorded; +pub mod websocket; +pub mod rest; diff --git a/src/listen/prerecorded.rs b/src/listen/rest.rs similarity index 100% rename from src/listen/prerecorded.rs rename to src/listen/rest.rs diff --git a/src/listen/live.rs b/src/listen/websocket.rs similarity index 100% rename from src/listen/live.rs rename to src/listen/websocket.rs