| 173 | return ext; |
| 174 | } |
| 175 | |
| 176 | bool is_wav_path(const std::filesystem::path & path) { |
| 177 | return lowercase_extension(path) == ".wav"; |
| 178 | } |
| 179 | |
| 180 | std::string read_text_file(const std::filesystem::path & path) { |
| 181 | std::ifstream input(path); |
| 182 | if (!input) { |
| 183 | throw std::runtime_error("failed to open workflow batch text file: " + path.string()); |
| 184 | } |
| 185 | std::ostringstream raw; |
| 186 | raw << input.rdbuf(); |
no test coverage detected