How to pronounce the word THE

Did you know that there are two different ways to pronounce the word “the”?⁣

/ðiː/ before vowel sounds or emphasis⁣
? The apple⁣

/ðə/ before consonant sounds⁣
? The book⁣⁣