The Talmud
רֹאשׁ הַשָּׁנָה דף כ״טRosh Hashana 29a
Amud a of Rosh Hashana 29 — the first side of the page
English rendering prepared for The Gematria — not a historical translation.
Rosh Hashanah 29a · ראש השנה כ״ט א
איכוון ותקע לי אלמא קסבר משמיע בעי כוונה
— direct your intention and sound for me. Evidently he holds that the sounder requires intention.
מיתיבי היה עובר אחורי בית הכנסת או שהיה ביתו סמוך לבית הכנסת ושמע קול שופר או קול מגילה אם כוון לבו יצא ואם לאו לא יצא וכי כוון לבו מאי הוי היאך לא קא מיכוין אדעתא דידיה
They raised an objection: if he was passing behind a synagogue, or his house was near a synagogue, and he heard the sound of a shofar or the sound of the Megillah (the scroll of Esther, read on Purim) — if he directed his heart he has fulfilled his obligation, and if not he has not fulfilled his obligation. And if he directed his heart, what of it? That other one does not intend on his behalf!
הכא בשליח ציבור עסקינן דדעתיה אכוליה עלמא
Here we are dealing with the prayer leader (sheliach tzibbur — the one who prays the Prayer aloud on the congregation's behalf), whose mind is upon all.
ת"ש נתכוון שומע ולא נתכוון משמיע נתכוון משמיע ולא נתכוון שומע לא יצא עד שיתכוון שומע ומשמיע קתני משמיע דומיא דשומע מה שומע שומע לעצמו אף משמיע משמיע לעצמו וקתני לא יצא
Come and hear: if the hearer intended and the sounder did not intend, or the sounder intended and the hearer did not intend, he has not fulfilled his obligation until both hearer and sounder intend. It teaches "sounder" like "hearer": just as the hearer hears for himself, so the sounder sounds for himself — and it teaches that he has not fulfilled his obligation.
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.