Skip to content

Commit

Permalink
Add speech synthesis support
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Apr 1, 2021
1 parent 308510e commit 15c10b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/fmt/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ FMT_API void report_windows_error(int error_code,
string_view message) FMT_NOEXCEPT;
#endif // _WIN32

template <typename S, typename... Args, typename Char = char_t<S>>
void say(const S& format_str, Args&&... args) {
std::system(format("say \"{}\"", format(format_str, args...)).c_str());
}

// A buffered file.
class buffered_file {
private:
Expand Down

0 comments on commit 15c10b0

Please sign in to comment.