Skip to content

Commit

Permalink
Melhora mensagens para o usuário
Browse files Browse the repository at this point in the history
  • Loading branch information
brunexgeek committed May 21, 2019
1 parent dbe2ee1 commit da560a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions source/simpleSynthesis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ static std::string main_loadInputFile(
ifstream input(fileName.c_str());
if (!input.good())
{
std::cerr << "Error opening input file '" << fileName << "'. Using default text." << std::endl;
text = "meu teste";
std::cout << "No '" << fileName << "' present, using default text." << std::endl;
text = "Este é um texto de exemplo do CPqD Texto Fala.";
}
else
{
Expand Down Expand Up @@ -108,7 +108,7 @@ int main( int argc, char **argv )
result = tts_loadLibrary(libraryFile.c_str());
if (result != TTS_OK)
{
std::cerr << "Can not load library '" << libraryFile << "'" << std::endl;
std::cerr << "Unable to load library '" << libraryFile << "'" << std::endl;
return 1;
}

Expand Down Expand Up @@ -146,7 +146,7 @@ int main( int argc, char **argv )
if (result != TTS_OK)
main_printError("TTS_SaveAudio");
else
std::cout << "Created the file '" << outputFile << "' with the synthesized audio" << std::endl;
std::cout << "Created file '" << outputFile << "' with synthesized speech" << std::endl;
}
}
else
Expand Down
4 changes: 2 additions & 2 deletions source/streamingSynthesis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ static std::string main_loadInputFile(
ifstream input(fileName.c_str());
if (!input.good())
{
std::cerr << "Error opening input file '" << fileName << "'. Using default text." << std::endl;
text = "meu teste";
std::cout << "No '" << fileName << "' present, using default text." << std::endl;
text = "Este é um texto de exemplo do CPqD Texto Fala.";
}
else
{
Expand Down

0 comments on commit da560a7

Please sign in to comment.