Skip to content

Commit

Permalink
api: make DEFAULT_ENDPOINT pub
Browse files Browse the repository at this point in the history
  • Loading branch information
kxxt committed May 5, 2023
1 parent c2a8f5f commit 059941e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::env;

use super::config::{AuthConfig, Config, OutputConfig};
use super::parse;
use crate::constants::DEFAULT_ENDPOINT;
use aspeak::DEFAULT_ENDPOINT;
use aspeak::{get_endpoint_by_region, AspeakError, AudioFormat, AuthOptions, Role};
use clap::{ArgAction, Args, ValueEnum};
use color_eyre::{Help, Report};
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub fn get_endpoint_by_region(region: &str) -> String {

pub use audio::{AudioFormat, QUALITY_MAP, QUALITY_RANGE_MAP};
pub use auth::*;
pub use constants::DEFAULT_ENDPOINT;
pub use error::{AspeakError, Result};
use phf::phf_map;
pub use ssml::interpolate_ssml;
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
mod cli;
mod constants;

use std::{borrow::Cow, path::PathBuf};

Expand Down

0 comments on commit 059941e

Please sign in to comment.