No it wasn't a duet. Yehoshua was summoned to be with Moshe as he has recently been appointed as the new leader subject to Moshe's death. Refer to Sotah 13b.
The Netziv in Ha'amek Davar writes:
והושע בן נון. כבר ביארנו לעיל ל״א כ׳ אשר יהושע לא נצטוה ע״ז כלל ורק משה קרא שירת האזינו בס״ת ואח״כ כשבא עוד לבאר להם וכבר כָּהָה אורו ולא היתה שכינה מדברת מתוך גרונו. ע״כ כשבא לבאר הי׳ יהושע עוזרו בשליחות משה. כדי להכין ולהשכיל לכל העם ומשום הכי כתיב כאן הושע ולא יהושע. משום שלא עשה זאת בשביל שהוא יהושע רבן של ישראל אלא בשביל שהוא הושע תלמידו של משה רבינו שנקרא הושע:
And Hoshea bin Nun - We already explained previously in chapter 31 that Yehoshua was not commanded on this and only Moshe read out the song (Shiras Ha'azinu) in the sefer Torah and after that when he came to explain to them and his light was already dark and there was no Shechina (Divine presence) speaking from his throat. Therefore when he came to explain it, Yehoshua was a helper in the mission of Moshe in order that he prepare and educate the entire people and that is why it writes Hoshea and not Yehoshua - Because he did not do it because he was Yehoshua the leader of Israel but rather because he was a disciple of Moshe Rabbeinu called Hosea.
So it would seem that Yehoshua was there to shadow Moshe and to be present so that the Jewish people saw him clearly as the successor.
In a similar vein, the Ohr HaChaim writes:
הוא והושע בן נון. פירוש היה עומד עמו אבל הדיבור לא דיבר אלא משה כאומרו וידבר, וכן אמר ה' ולמדה את בני ישראל שימה בפיהם לשון יחיד אל משה, ואומרו והושע ולא אמר ויהושע כמו שקרא לו משה, לפי שתוספת היו''ד היא ליקר וגדולה כרמוז במאמר (במדבר י''ג ט''ז) ויקרא משה להושע וגו' וכשהשוום הכתוב ואמר הוא והושע בן נון הסיר היו''ד, על דרך אומרו (ישעי, י, טו) היתפאר הגרזן וגו'
הוא והושע בן נון, "he and Joshua son of Nun." Although Joshua stood beside Moses, G'd's word came only to Moses, as is plain from the words וידבר ה׳ אל משה in verse 48. Although Moses had added the letter י to Joshua's name in Numbers 13,16, this was in order to lend him prestige vis-a-vis Israel. When G'd mentions Joshua's name, it remained unchanged as it was not appropriate to make him look prestigious vis-a-vis his teacher (Compare Isaiah 10, 15: "Is the axe going to boast in the presence of the wood cutter?").