i not genius i not telepath please create how to install.
i have CentOS server
i try create file ems.toml and chmod 777 ems.toml and run ./ems.toml
audiosocket_addr = "0.0.0.0:12345"
websocket_addr = "0.0.0.0:12346"
recognition_driver = "google"
synthesis_driver = "google"
[gcs]
service_account_path = "./my_gcs_key.json"
[gctts]
service_account_path = "./my_gctts_key.json"
i recieve errors
./ems.toml: line 1: audiosocket_addr: command not found
./ems.toml: line 2: websocket_addr: command not found
./ems.toml: line 4: recognition_driver: command not found
./ems.toml: line 5: synthesis_driver: command not found
./ems.toml: line 7: [gcs]: command not found
./ems.toml: line 8: service_account_path: command not found
./ems.toml: line 10: [gctts]: command not found
./ems.toml: line 11: service_account_path: command not found
You have new mail in /var/spool/mail/root
i try create file ems.toml and chmod 777 ems.toml and run ./ems.toml
audiosocket_addr = "0.0.0.0:12345" websocket_addr = "0.0.0.0:12346" recognition_driver = "google" synthesis_driver = "google" [gcs] service_account_path = "./my_gcs_key.json" [gctts] service_account_path = "./my_gctts_key.json"i recieve errors
./ems.toml: line 1: audiosocket_addr: command not found ./ems.toml: line 2: websocket_addr: command not found ./ems.toml: line 4: recognition_driver: command not found ./ems.toml: line 5: synthesis_driver: command not found ./ems.toml: line 7: [gcs]: command not found ./ems.toml: line 8: service_account_path: command not found ./ems.toml: line 10: [gctts]: command not found ./ems.toml: line 11: service_account_path: command not found You have new mail in /var/spool/mail/root
Hi. You have to make the ems binary executive, not the config file
i try create file ems.toml and chmod 777 ems.toml and run ./ems.toml
audiosocket_addr = "0.0.0.0:12345" websocket_addr = "0.0.0.0:12346" recognition_driver = "google" synthesis_driver = "google" [gcs] service_account_path = "./my_gcs_key.json" [gctts] service_account_path = "./my_gctts_key.json"i recieve errors
./ems.toml: line 1: audiosocket_addr: command not found ./ems.toml: line 2: websocket_addr: command not found ./ems.toml: line 4: recognition_driver: command not found ./ems.toml: line 5: synthesis_driver: command not found ./ems.toml: line 7: [gcs]: command not found ./ems.toml: line 8: service_account_path: command not found ./ems.toml: line 10: [gctts]: command not found ./ems.toml: line 11: service_account_path: command not found You have new mail in /var/spool/mail/rootHi. You have to make the
emsbinary executive, not the config file
как это сделать??
rustc ems.toml
error: expected one of `!` or `::`, found `=`
--> ems.toml:1:18
|
1 | audiosocket_addr = "0.0.0.0:12345"
| ^ expected one of `!` or `::`
error: aborting due to previous error
rustc main.rs
error[E0670]: async fnis not permitted in Rust 2015 --> main.rs:97:1 | 97 | async fn run(config: &'static Config) -> Result<()> { | ^^^^^ to useasync fn, switch to Rust 2018 or later | = help: set edition = "2018"inCargo.toml`
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
error[E0670]: async fn is not permitted in Rust 2015
--> db.rs:40:9
|
40 | pub async fn recv_notification(&self) -> WsNotification {
| ^^^^^ to use async fn, switch to Rust 2018 or later
|
= help: set edition = "2018" in Cargo.toml
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
error[E0670]: async fn is not permitted in Rust 2015
--> db.rs:81:5
|
81 | async fn test_transcription() {
| ^^^^^ to use async fn, switch to Rust 2018 or later
|
= help: set edition = "2018" in Cargo.toml
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
error[E0670]: async fn is not permitted in Rust 2015
--> server.rs:44:9
|
44 | pub async fn listen(self) -> Result<(), IoError> {
| ^^^^^ to use async fn, switch to Rust 2018 or later
|
= help: set edition = "2018" in Cargo.toml
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
error[E0670]: async fn is not permitted in Rust 2015
--> server.rs:61:1
|
61 | async fn handle_tcp(
| ^^^^^ to use async fn, switch to Rust 2018 or later
|
= help: set edition = "2018" in Cargo.toml
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
error[E0670]: async fn is not permitted in Rust 2015
--> handler.rs:68:9
|
68 | pub async fn listen(mut self, max_time: Duration) -> Result<(), ServerError> {
| ^^^^^ to use async fn, switch to Rust 2018 or later
|
= help: set edition = "2018" in Cargo.toml
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
error[E0670]: async fn is not permitted in Rust 2015
--> handler.rs:149:9
|
149 | pub async fn listen(mut self, max_time: Duration) -> Result<(), ServerError> {
| ^^^^^ to use async fn, switch to Rust 2018 or later
|
= help: set edition = "2018" in Cargo.toml
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
error[E0670]: async fn is not permitted in Rust 2015
--> handler.rs:171:5
|
171 | async fn handle_messages<'a>(
| ^^^^^ to use async fn, switch to Rust 2018 or later
|
= help: set edition = "2018" in Cargo.toml
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
error[E0670]: async fn is not permitted in Rust 2015
--> handler.rs:222:5
|
222 | async fn action_listen(
| ^^^^^ to use async fn, switch to Rust 2018 or later
|
= help: set edition = "2018" in Cargo.toml
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
error[E0670]: async fn is not permitted in Rust 2015
--> handler.rs:277:1
|
277 | async fn prepare_recognition_service(
| ^^^^^ to use async fn, switch to Rust 2018 or later
|
= help: set edition = "2018" in Cargo.toml
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
error[E0670]: async fn is not permitted in Rust 2015
--> handler.rs:313:1
|
313 | async fn write_audio<S>(mut sink: S, chunk: &[u8], apply_latency: bool) -> Result<(), ServerError>
| ^^^^^ to use async fn, switch to Rust 2018 or later
|
= help: set edition = "2018" in Cargo.toml
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
error: expected one of !, ), ,, ., ::, ?, {, or an operator, found keyword move
--> handler.rs:362:34
|
362 | let handle = spawn(async move {
| ^^^^ expected one of 8 possible tokens
error: aborting due to 12 previous errors
For more information about this error, try rustc --explain E0670.
`