1
00:00:00,910 --> 00:00:07,240
Hello, everyone, in this section, I will show you how you can convert any text to an audio, which

2
00:00:07,240 --> 00:00:13,030
means if you have a variable that has a string or something and you want to produce an audio, because

3
00:00:13,030 --> 00:00:21,010
the idea of our project is to take any text, which means if you have, for example, a book in a PDF,

4
00:00:21,010 --> 00:00:26,170
so you have to take that text from the PDA and convert it to do so.

5
00:00:26,290 --> 00:00:32,620
Before doing that, we will start with something easy, which means we take a simple sentence or a simple

6
00:00:32,770 --> 00:00:40,090
text, and we put it as an audio that in the next sections will do that in Bedier and you will see that

7
00:00:40,760 --> 00:00:41,730
it is very easy.

8
00:00:41,770 --> 00:00:43,220
We do it in four lines.

9
00:00:43,240 --> 00:00:46,660
OK, so we will go here to our text editor.

10
00:00:46,990 --> 00:00:53,290
As I told you in the previous video, you can use, for example, this year, which is video code.

11
00:00:53,440 --> 00:00:56,000
But if you have another one, it is OK.

12
00:00:56,020 --> 00:00:57,520
OK, don't worry about it.

13
00:00:57,640 --> 00:01:00,980
Any editor, any taxation will work for this project.

14
00:01:01,360 --> 00:01:08,440
So then after installing the text initially, you have to install the libraries that I told you about.

15
00:01:08,860 --> 00:01:10,140
Now let's get started.

16
00:01:10,750 --> 00:01:14,790
Once we have to do is first thing if we want to use a library.

17
00:01:14,800 --> 00:01:16,250
So we need to import it.

18
00:01:16,270 --> 00:01:23,570
So if you if we don't imported the program will not or will not recognize the functions that we use.

19
00:01:23,830 --> 00:01:29,130
So the first thing we have to do, we have to import it, which is the function that I told you about

20
00:01:29,620 --> 00:01:34,140
that will work with the Audu, which is by TGT as extreme.

21
00:01:34,390 --> 00:01:41,150
So we just we have just imported like this import by this one as extreme.

22
00:01:42,790 --> 00:01:46,590
So then after importing globality, we have just to use it.

23
00:01:46,600 --> 00:01:52,510
So we go here, for example, the first thing that we need to do to initialize our speaker, which is

24
00:01:52,510 --> 00:01:54,110
the speaker that we told.

25
00:01:54,310 --> 00:02:01,730
So we give a or we create a paper we call a speaker that will have the role of the speaker.

26
00:02:01,930 --> 00:02:03,910
So we will give it speaker.

27
00:02:04,270 --> 00:02:10,450
So after that, we need to initialize our library or we need to initialize our speaker.

28
00:02:10,660 --> 00:02:17,120
So to do that, we have to call a function that is included included on this library.

29
00:02:17,440 --> 00:02:24,700
So what we have to do is just to write the name of the library, which is pretty as it's tree that here

30
00:02:24,700 --> 00:02:29,520
that and we we have here this function in it, which is initialized.

31
00:02:29,860 --> 00:02:37,780
So if you are using a function that you have always in Bitel or any programming language, if you are

32
00:02:37,780 --> 00:02:43,240
using any function, you have to add to parentheses, which means that this is a function.

33
00:02:43,550 --> 00:02:49,520
So this library is calling the function in it to initialize our speaker.

34
00:02:49,840 --> 00:02:55,990
So after initializing our speaker what we have to do, we have just to give it something that the sentence

35
00:02:55,990 --> 00:02:58,770
or the text that we want to say.

36
00:02:59,080 --> 00:03:01,630
So what we have to do is just to give it the text.

37
00:03:01,810 --> 00:03:10,810
So to do that, we have just the right speaker that say, which means, if I will, to give you a sentence

38
00:03:10,810 --> 00:03:11,230
or something.

39
00:03:11,230 --> 00:03:17,620
You just said, OK, so speaker that say down here, we divide the sentence that we want, for example.

40
00:03:17,650 --> 00:03:18,220
Hello.

41
00:03:19,810 --> 00:03:22,360
Hello, how are you?

42
00:03:26,080 --> 00:03:35,290
Beautiful people like this, for example, that this is just a simple example that we would use in the

43
00:03:35,290 --> 00:03:36,010
first thing.

44
00:03:36,600 --> 00:03:41,020
Then after that we will use a large text or a PDA, etc..

45
00:03:41,470 --> 00:03:42,480
So here we have.

46
00:03:42,490 --> 00:03:43,510
Hello, how are you?

47
00:03:43,520 --> 00:03:50,680
Beautiful people now after giving the sentence that we want to say so before, because we said the speaker

48
00:03:50,680 --> 00:03:54,190
does say say this function the sentence.

49
00:03:54,190 --> 00:03:57,290
Sorry, after doing that we have just to run it.

50
00:03:57,760 --> 00:04:02,350
You have to write speaker that run and wait.

51
00:04:02,740 --> 00:04:03,310
This is it.

52
00:04:03,490 --> 00:04:05,220
This one is a function too.

53
00:04:05,230 --> 00:04:07,420
So we, we need to add parentheses.

54
00:04:07,690 --> 00:04:14,440
So here is speaker that run and wait that we add parentheses that all what we need to do.

55
00:04:14,440 --> 00:04:16,600
So I will show you how to do this.

56
00:04:16,600 --> 00:04:23,670
If, if we will run our program you will see that it will say the sentence that is between the parenthesis.

57
00:04:23,680 --> 00:04:25,240
So let's run it.

58
00:04:26,940 --> 00:04:29,250
Hello, how are you, beautiful people.

59
00:04:30,540 --> 00:04:32,130
As you can see, we do it again.

60
00:04:32,760 --> 00:04:34,100
Hello, how are you?

61
00:04:34,110 --> 00:04:40,560
Beautiful people, as you can see, and he said this, you will put here the program, the program.

62
00:04:40,560 --> 00:04:47,940
We said so, for example, if I will take this sentence here from here, then.

63
00:04:49,290 --> 00:04:49,920
Got it.

64
00:04:51,520 --> 00:04:57,820
And I will put it in a variable, for example, I will give it, for example, text or something like

65
00:04:57,820 --> 00:05:02,570
this, then here I will put the sentence that we want.

66
00:05:02,920 --> 00:05:08,890
Now, if we have this text, has this sentence that we need to do just to put here, because we want

67
00:05:08,890 --> 00:05:13,720
to speed, we want from the speaker to say something, so to say something, we need to give it what.

68
00:05:13,720 --> 00:05:14,680
We want it.

69
00:05:14,740 --> 00:05:15,370
We want it.

70
00:05:15,370 --> 00:05:17,480
We want him to say to here.

71
00:05:17,530 --> 00:05:21,290
We want him to say this sentence, which is in this text.

72
00:05:22,720 --> 00:05:27,070
So here we give it just the name of the variable and you will see that it is the same thing.

73
00:05:27,970 --> 00:05:29,290
Hello, how are you?

74
00:05:29,300 --> 00:05:30,240
Beautiful people.

75
00:05:30,490 --> 00:05:31,450
But why?

76
00:05:31,540 --> 00:05:33,580
The question is why I am doing this.

77
00:05:33,580 --> 00:05:40,270
Because in the next section when we will take a PDF and instructions and take the text from it, we

78
00:05:40,270 --> 00:05:43,090
have to put that text on a variable.

79
00:05:43,390 --> 00:05:46,400
Then from the very word we will take, we will put it here.

80
00:05:46,720 --> 00:05:52,990
So for that, I just want you to know that if we will take a variable and give it a text, then what's

81
00:05:52,990 --> 00:05:56,920
the name of the variable between the parameters of the function?

82
00:05:56,920 --> 00:05:59,780
Say it will work and don't worry about it.

83
00:06:00,130 --> 00:06:04,120
So that was for today and I see you in the next section, but.
