-
Notifications
You must be signed in to change notification settings - Fork 24
/
Cargo.toml
105 lines (92 loc) · 2.83 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[package]
name = "deepgram"
version = "0.6.4"
authors = ["Deepgram <[email protected]>"]
edition = "2021"
description = "Community Rust SDK for Deepgram's automated speech recognition APIs."
license = "MIT"
repository = "https://github.com/deepgram/deepgram-rust-sdk"
keywords = [
"transcription",
"voice-ai",
"text-to-speech",
"speech-to-text",
"asr",
]
categories = ["api-bindings", "multimedia::audio"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# TODO Investigate which of these dependencies can go behind features.
audio = "0.2.0"
bytes = "1"
futures = "0.3"
http = "0.2"
pin-project = "1"
reqwest = { version = "0.11.22", default-features = false, features = [
"json",
"rustls-tls",
"stream",
] }
rodio = { version = "0.17.0", optional = true }
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1"
serde_urlencoded = "0.7"
thiserror = "1"
tokio = { version = "1.38.0", features = ["full"] }
tokio-stream = "0.1.15"
tokio-tungstenite = { version = "0.20.1", features = [
"rustls-tls-webpki-roots",
], optional = true }
tokio-util = { version = "0.7.1", features = ["codec", "io"] }
tungstenite = { version = "0.20.1", optional = true }
url = "2"
uuid = { version = "1", features = ["serde"] }
# Dependencies below are specified only to satisfy minimal-versions.
proc-macro2 = "1.0.60"
pkg-config = { version = "0.3.30", optional = true }
sha256 = "1.5.0"
anyhow = "1.0.86"
[dev-dependencies]
cpal = "0.13"
crossbeam = "0.8"
[features]
default = ["manage", "listen", "speak"]
manage = []
listen = ["dep:tungstenite", "dep:tokio-tungstenite"]
speak = ["dep:rodio", "dep:pkg-config"]
[[example]]
name = "prerecorded_from_file"
path = "examples/transcription/rest/prerecorded_from_file.rs"
required-features = ["listen"]
[[example]]
name = "callback"
path = "examples/transcription/rest/callback.rs"
required-features = ["listen"]
[[example]]
name = "make_prerecorded_request_builder"
path = "examples/transcription/rest/make_prerecorded_request_builder.rs"
required-features = ["listen"]
[[example]]
name = "prerecorded_from_url"
path = "examples/transcription/rest/prerecorded_from_url.rs"
required-features = ["listen"]
[[example]]
name = "simple_stream"
path = "examples/transcription/websocket/simple_stream.rs"
required-features = ["listen"]
[[example]]
name = "callback_stream"
path = "examples/transcription/websocket/callback_stream.rs"
required-features = ["listen"]
[[example]]
name = "microphone_stream"
path = "examples/transcription/websocket/microphone_stream.rs"
required-features = ["listen"]
[[example]]
name = "text_to_speech_to_file"
path = "examples/speak/rest/text_to_speech_to_file.rs"
required-features = ["speak"]
[[example]]
name = "text_to_speech_to_stream"
path = "examples/speak/rest/text_to_speech_to_stream.rs"
required-features = ["speak"]