The Shulchan Aruch · Orach Chayim
אורח חיים תרפ״טOrach Chayim 689
Siman 689 of 697 in Orach Chayim — 6 se'ifim
הלכות מגילהLaws of Purim· siman 689
Se’if 1א׳
הַכֹּל חַיָּבִים בִּקְרִיאָתָהּ, אֲנָשִׁים וְנָשִׂים וְגֵרִים וַעֲבָדִים מְשֻׁחְרָרִים; וּמְחַנְּכִים אֶת הַקְּטַנִּים לִקְרוֹתָהּ.
That all are obligated to read megillah. Containing 6 paragraphs: All are obligated in reading [the megillah]: men, women, converts, and freed slaves. We teach the children to read.
Se’if 2ב׳
אֶחָד הַקּוֹרֵא וְאֶחָד הַשּׁוֹמֵעַ מִן הַקּוֹרֵא, יָצָא יְדֵי חוֹבָתוֹ; וְהוּא שֶׁיִּשְׁמַע מִפִּי שֶׁהוּא חַיָּב בִּקְרִיאָתָהּ. לְפִיכָךְ אִם הָיָה הַקּוֹרֵא חֵרֵשׁ אוֹ קָטָן אוֹ שׁוֹטֶה, הַשּׁוֹמֵעַ מִמֶּנּוּ לֹא יָצָא; וְיֵשׁ אוֹמְרִים שֶׁהַנָּשִׁים אֵינָם מוֹצִיאוֹת אֶת הָאֲנָשִׁים. הַגָּה: וְיֵשׁ אוֹמְרִים אִם הָאִשָּׁה קוֹרְאָהּ לְעַצְמָהּ מְבָרֶכֶת: לִשְׁמֹעַ מְגִלָּה, שֶׁאֵינָהּ חַיֶּבֶת בִּקְרִיאָה (מָרְדְּכַי פ"ק דִּמְגִלָּה).
Whether one reads or hears from someone who reads - he has fulfilled his obligation. That is, if he hears from someone who is obligated in reading it. Therefore, if the reader was a deaf-mute, or a minor, or mentally infirm, one who hears from him does not fulfill [his obligation]. And there are those who say that women do not fulfill the obligation for men. Rema: And there are some who say, if a woman reads for herself, she blesses "to hear the megillah," because she is not obligated in reading (Mordechai first chapter of megillah)
Se’if 3ג׳
אַנְדְּרוֹגִינוּס מוֹצִיא מִינוֹ וְלֹא שֶׁאֵינוֹ מִינוֹ, טֻמְטוּם וּמִי שֶׁחֶצְיוֹ עֶבֶד אֲפִלּוּ מִינוֹ אֵינוֹ מוֹצִיא. הַגָּה: יֵשׁ אוֹמְרִים דְּאֲפִלּוּ אֶת עַצְמוֹ אֵינוֹ מוֹצִיא וְצָרִיךְ לִשְׁמֹעַ מֵאֲחֵרִים (בֵּית יוֹסֵף).
An androgynous person fulfills the obligation for his kind, and not for those not of his kind. A Tumtum and someone who is half slave, may not fulfill the obligation even for his own kind. Rema: There are some who say that he cannot even fulfill his own obligation, and he must hear from others. (Beis Yosef)
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0