The striker has become a top transfer target in and outside the country following his good showing for the national set-up this year.
He netted four goals as the Black Starlets reached the final of the Africa Under-17 Cup of Nations in May, and scored three more times as Ghana reached the quarter-finals of the Under-17 World Cup in September.
"I'm ready to join any club [Hearts or Kotoko] but everything will depend on my agent," Ayiah told Happy FM.
"If a club approaches me with a nice offer and they think it will fit the criteria we want, why not?
"I'm working under them and they take the decisions for me, so I wouldn't have any problem if they feel I'm ready to play for any of the two sides, but I cannot pick one over the other."
Ayiah was widely linked to Portuguese giants FC Porto earlier this year.
Earlier reports suggested the teenager put pen to paper for the Dragons, but he has since denied the existence of any deal.